aelve / haskell-issues

An unofficial issue tracker for all things Haskell-related
18 stars 0 forks source link

A parsing library that can be used as easily as regexps #13

Open neongreen opened 8 years ago

neongreen commented 8 years ago

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

Gurkenglas commented 8 years ago

fmap read . wordsBy isAlpha

neongreen commented 8 years ago

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.