regular expression type for Haskell