megaparsec
megaparsec copied to clipboard
Add a new primitive: 'scanP'
Attoparsec has it: https://hackage.haskell.org/package/attoparsec-0.13.2.2/docs/Data-Attoparsec-Text.html#v:scan.
I'm going to not include it in version 8, because 1) it further increases the number of primitive parsers 2) there are no requests for this feature, so it makes sense to assume that it's not so necessary.
Closing, since #514 now makes it possible to define new primitives as needed.