Haskell interface: simple fixes