[Haskell-cafe] Monad Description For Imperative Programmer

Christopher L Conway cconway at cs.nyu.edu
Wed Aug 1 09:27:26 EDT 2007


On 8/1/07, david48 <dav.vire+haskell at gmail.com> wrote:
> As a beginner haskeller coming from an imperative experience, I think
> I understood what he meant.
>
> say you have this code :
>
>    putStrLn "1" >> putStrLn "2" >> putStrLn "3"
>
> you can imagine each of the calls to putStrLn gets implicitly passed a
> variable (here, the world ) and they happen in succession so it's
> "like a loop".

Why isn't this "like a semicolon"?

Chris


More information about the Haskell-Cafe mailing list