fix for haskell