[Haskell-cafe] Parsec and Text
aslatter at gmail.com
Sat Oct 8 19:55:54 CEST 2011
On Sat, Oct 8, 2011 at 12:37 PM, Yves Parès <limestrael at gmail.com> wrote:
> Hallo Café,
> Is there a package that allows parsing Text with parsec, or do you have to
> switch to attoparsec-text or convert your Text to a ByteString?
I haven't tested it, but this declaration should work:
instance Monad m => Stream Text m Char where
uncons = return . Text.uncons
(Or something similar)
I don't know how performance compares to the String version.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe