Fix warnings in Haskell backend