[Haskell-beginners] parsing upto n items with parsec

Ashish Agarwal agarwal1975 at gmail.com
Fri Oct 16 11:41:47 EDT 2009


Hi. I'm just learning Parsec and Haskell. It is a great library, and I see
how "many" lets you parse 0 or more items, "many1" parses 1 or more items,
and "count" parses exactly n items. However, there is no combinator that
parses between m and n items. What would be the best implementation for
this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20091016/7417473d/attachment.html


More information about the Beginners mailing list