[Haskell-beginners] how to parse

David McBride toad3k at gmail.com
Thu Dec 12 01:38:28 UTC 2019


I would actually use Data.Attoparsec.ByteString.Char8.takeWhile1.

prefix <- takeWhile1 (/= '_')


On Tue, Dec 10, 2019, 15:17 PICCA Frederic-Emmanuel <
frederic-emmanuel.picca at synchrotron-soleil.fr> wrote:

> > `manyTill` [1] should do
> > [1]
> https://hackage.haskell.org/package/attoparsec-0.13.2.2/docs/Data-Attoparsec-Combinator.html#v:manyTill
>
> It works,
>
> thanks
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20191211/3bc8c451/attachment.html>


More information about the Beginners mailing list