learning haskell by example, inspired on /r/dailyprogrammer