bug in haskell interface