Fix for haskell mode