On 4/6/10 15:31, Heinrich Apfelmus wrote:
In fact, it doesn't actually work for monads, I think you have to wrap
it in a newtype. :D The same effect can be achieved with `ap` , though:

Fortunately, by now most (standard) monads are also applicatives. :-)

Besides generalizing to an arbitrary number of arguments, it uses infix operators which saves you some parentheses.

Groetjes,

Martijn.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to