News for hackers. Stuff that matters.
Re:Learn a Programming Language Faster by Copying Unix by Hemospectrum on Saturday November 03, 2012 @01:39PM (#4737273)

    main = interact id
This is a slightly crude implementation of cat in Haskell. As you can see, it is replete with scary monad plumbing that gets in the way of the actual functionality (copying stdin to stdout).

I would explain further and implement more than what the blog post suggested but there's already a book (Real World Haskell) that does this with a number of other Unix commands.

Re:Learn a Programming Language Faster by Copying Unix by rodrigoavie on Saturday November 03, 2012 @01:41PM (#4737289)
In the post I only suggested cat and tree for examples. Other nice tools would be: ls, touch, rm, mkdir, rmdir and even cal.

I just made a few more suggestions. I can't count how many neat, small tools are provided by Unix. It's a large ground to play in!