some minor haskell stuff