[Haskell-cafe] Monad Laws and Do Notation

2011-09-21 Thread diazepan
I've got this expression expression = do w - hello y - to you return w I wanna know how can I reduce it using monad laws -- View this message in context: http://haskell.1045720.n5.nabble.com/Monad-Laws-and-Do-Notation-tp4828598p4828598.html Sent from the Haskell -

Re: [Haskell-cafe] Monad Laws and Do Notation

2011-09-21 Thread Ivan Lazar Miljenovic
On 22 September 2011 11:46, diazepan spanishbizar...@yahoo.com wrote: I've got this expression expression = do        w - hello        y - to you        return w I wanna know how can I reduce it using monad laws I don't think you can: the best you can do is minimise it with other monadic