improve parsing of haskell errors