News for hackers. Stuff that matters.
Re:Learn a Programming Language Faster by Copying Unix by shangaslammi on Saturday November 03, 2012 @01:46PM (#4737314)
Not at all. You can start doing I/O in Haskell without knowing anything at all about monads by just treating the do-syntax as an imperative DSL.

In fact, Bryan O'Sullivan (who wrote Real World Haskell) just held a tutorial session on Haskell a couple of weeks ago where people completely new to the language implemented simple Unix tools like "wc". I don't think monads were mentioned at all.

Re:Learn a Programming Language Faster by Copying Unix by 4ad on Saturday November 03, 2012 @04:10PM (#4737745)
This only works if you are a top-down thinker. Many people are bottom-up thinkers.
Re:Learn a Programming Language Faster by Copying Unix by anothermachine on Sunday November 04, 2012 @03:25PM (#4740902)
Explain?

With "do" and the coincidental naming of "return", and IORefs if you insist, you can write imperative bottom-up code in Haskell.