haskell-issues icon indicating copy to clipboard operation
haskell-issues copied to clipboard

A parsing library that can be used as easily as regexps

Open neongreen opened this issue 8 years ago • 2 comments

For instance, splitting a string like "foo12bar34" into [12,34] should be a one-liner.

neongreen avatar Mar 20 '16 15:03 neongreen

fmap read . wordsBy isAlpha

Gurkenglas avatar Mar 20 '16 15:03 Gurkenglas

Sure, split partly fulfills this role, but it only works for simple cases and doesn't allow for error messages when the string doesn't match the schema.

neongreen avatar Mar 20 '16 15:03 neongreen