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

prefix <- takeWhile1 (/= '_')


On Tue, Dec 10, 2019, 15:17 PICCA Frederic-Emmanuel <frederic-emmanuel.picca@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@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners