Update Haskell implementation.