[Haskell-cafe] Alternative name for return
simonpj at microsoft.com
Thu Aug 15 04:54:35 CEST 2013
| Indeed, I wished the 0-ary case would be more alike to the unary and
| binary case, cf.
| return f0
| f1 <$> a1
| f2 <$> a1 <*> a2
| What is needed is a nice syntax for "idiom brackets".
Indeed. I'm quite open to adding idiom brackets to GHC, if everyone can agree on their syntax, and someone would like to offer a patch.
(| f a1 a2 |)
More information about the Haskell-Cafe