Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  how to parse (David McBride)
   2. Re:  how to parse (PICCA Frederic-Emmanuel)


----------------------------------------------------------------------

Message: 1
Date: Wed, 11 Dec 2019 20:38:28 -0500
From: David McBride <toa...@gmail.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <Beginners@haskell.org>
Subject: Re: [Haskell-beginners] how to parse
Message-ID:
        <CAN+Tr431fFZaAzmQd8FWmtv3VhsSaCVvuDPzqkeUALi=f3k...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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

prefix <- takeWhile1 (/= '_')


On Tue, Dec 10, 2019, 15:17 PICCA Frederic-Emmanuel <
frederic-emmanuel.pi...@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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20191211/3bc8c451/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 12 Dec 2019 05:31:56 +0000
From: PICCA Frederic-Emmanuel
        <frederic-emmanuel.pi...@synchrotron-soleil.fr>
To: "The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell" <beginners@haskell.org>
Subject: Re: [Haskell-beginners] how to parse
Message-ID:
        
<a2a20ec3b8560d408356cac2fc148e53017d847...@sun-dag3.synchrotron-soleil.fr>
        
Content-Type: text/plain; charset="us-ascii"

The problem is that prefix can contain also a '_'

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 138, Issue 3
*****************************************

Reply via email to