News for hackers. Stuff that matters.
Re:IO Monad Considered Harmful by lclarkmichalek on Friday January 23, 2015 @02:40AM (#8933819)
Ok, so we can't use the word monad because that's bad apparently. How do we answer "How does Haskell, a FP language where composition is a very important concept, compose IO actions?". Because that's almost always done using monadic actions.

Aside, I agree on the List monad thing. I never ever use the list monad, why would I. But if I'm managing state (i.e. IO, Reader/Writer, Conduit etc), then why wouldn't I use the name of the language construct that Haskell provides to manage state?

Re:IO Monad Considered Harmful by tome on Friday January 23, 2015 @03:35AM (#8933930)
> How do we answer "How does Haskell, a FP language where composition is a very important concept, compose IO actions?".

You can answer "By using the combinators provided for composing IO actions".

The fact that the structure encoded (some of) these operations happens to correspond to a monad is something that can be left unmentioned until later.

Re:IO Monad Considered Harmful by Chattered on Friday January 23, 2015 @07:21AM (#8934489)
> Aside, I agree on the List monad thing. I never ever use the list monad, why would I.

I use monad library functions on lists happily, and use the do-notation, particularly when I'm thinking in terms of non-deterministic computation and search.