[Haskell-cafe] Function application layout
alex.solla at gmail.com
Wed May 25 22:06:55 CEST 2011
2011/5/25 Jonas Almström Duregård <jonas.duregard at chalmers.se>
> I don't see the similarity (from reading this:
> http://www.haskell.org/haskellwiki/Idiom_brackets). My suggestion is
> just a way of using layout to avoid parenthesis.
This is "exactly" the applicative style, where idiom brackets come from.
f <$> x a
<*> y b
<*> z c
You can use the identity functor to recover "plain old" function
application. Idiom brackets abstract the <$> (fmap) and (<*>) operators
And yes, you are right that applicative style is very useful.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe