On 8/3/07, Jules Bean <[EMAIL PROTECTED]> wrote:
> do
>    a <- m
>    b <- n
>    l a x b y
>
> becomes
>
> l (<- m) x (<- n) y

Couldn't this be best done with McBride and Patterson's Applicative
idiom notation?

So the above would become

[[l m (pure x) n (pure y)]]      (or something like that)

It would have the advantage of being usable with any Applicative, not
just Monads.
--
Dan
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to