News for hackers. Stuff that matters.
Re:Haskell IO for Imperative Programmers by Luyt on Monday November 09, 2009 @06:00AM (#930718)
The author makes a nice case for lazy evaluation, but I doubt the "goal to help experienced procedural programmers make the transition to Haskell" is achieved because he doesn't explain how to read special Haskell constructs:

    mapM_ (interactFile (unlines . map processIt . lines)) args
    ss <- mapM readFile fileNames
    putStr $ f (concat ss)
A c++ programmer might ask: What do these dots means? Wat does the $ character do? Why us mapM sometimes used with and without trailing underscore?

It seems like one should learn Haskell first, before being able to understand the examples.

Re:Haskell IO for Imperative Programmers by jberryman on Monday November 09, 2009 @10:05AM (#930991)
The article is billed as a tutorial on haskell IO, so I presume a knowledge of haskell syntax as basic as (.) and ($) is assumed. But I agree that this probably isn't such an effective introduction to IO or haskell.