fixup haskell interface