[Haskell-beginners] parsec, return remaining input?

Rob Nikander rob.nikander at gmail.com
Sat Apr 16 01:44:32 CEST 2011


Hi,

Is there a way to return the remaining input, so that parsec can be
used to parse one piece at a time.  So something like:

    chunk = many (noneOf ",:")
    parse chunk "abc,123:xyz"

Would return ("abc", ",123:last") or similar?

thanks,
Rob



More information about the Beginners mailing list