[Haskell-cafe] Using Parsec with ByteString ?
quarantedeux42 at yahoo.fr
Wed Jun 24 03:39:33 EDT 2009
Chaddaï Fouché пишет:
> On Fri, Jun 19, 2009 at 1:51 PM, Fernand<quarantedeux42 at yahoo.fr> wrote:
>> but the parser one needs to write must parse ByteStrings instead of Strings
>> (that is, something like having a "Parsec Bytestring ()" type, unless I'm
>> completely misunderstanding the situation). My problem is that I do not
>> to write primitive parsing combinators (like string, satisfy, letter, etc.)
>> define my language's tokens.
> Why would you want to do that ? After all, those combinators are
> already available in Text.Parsec.Char : they work on any Stream
> instance whose token type is Char, which happens to be the case for
Oh. You're right, I wonder how that escaped me. Thank you !
More information about the Haskell-Cafe