Add Haskell implementation.