Add Haskell implementation.

Because I have literally nothing better to do this afternoon.
Merge pull request #36 from bit-shift/patch-1

Add Haskell implementation.