It works really well stylistically inside the do notation: x <- f =<< xs where you can view this as a process whereby each of the things in the monadic container xs has f applied to it, and each result obtained from that is then bound to x, so the data flows naturally. - Cale Gibbard On Mon, 02 Aug 2004 18:27:12 +0100, Graham Klyne <gk@ninebynine.org> wrote:
At 12:49 29/07/04 -0700, John Meacham wrote:
out of curiosity, when is the =<< useful? I have never used it and I am wondering if it could have been making my life easier. Perhaps I have just not been trained to recognize when it should be used.
I don't know if this counts as "useful", but I think it works as the monadic variant of function composition.
#g
------------ Graham Klyne For email: http://www.ninebynine.org/#Contact
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell