On 02/21/2010 11:57 PM, haskell-cafe-requ...@haskell.org wrote: > Message: 2 > Date: Sun, 21 Feb 2010 12:36:21 +0000 > From: Magnus Therning <mag...@therning.org> > Subject: [Haskell-cafe] Parsing of bytestrings with non-String errors? > To: haskell-cafe <haskell-cafe@haskell.org> > Message-ID: <4b8128c5.6030...@therning.org> > Content-Type: text/plain; charset="utf-8" > > I've looked at polyparse and attoparsec and they seem to have in common that > the error always is a String. My current ideas for a project would be a lot > easier if I could just return some other type, something that I can pattern > match on. > > Is there a parser combinator library out there that works on bytestrings and > allows using a custom error type? > > Or maybe there's some very basic reason why String is so commonly used? > >
You can try to play with ParsecT / ErrorT _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe