purescript-contrib / purescript-string-parsers

A parsing library specialized to handling strings
MIT License
44 stars 21 forks source link

Add a Monoid instance for Parser #58

Closed JordanMartinez closed 4 years ago

JordanMartinez commented 4 years ago

What does this pull request do?

Fixes #33

Note: this doesn't implement Foldable for Parser, which is the other part of that issue.

thomashoneyman commented 4 years ago

Thanks! I'm not sure a Foldable instance makes much sense for Parser; this PR at least does enable the use case of calling fold on an a array of parsers, though, which is nice.