did a haskell problem