
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? Thanks!

On Sat, Oct 8, 2011 at 12:37 PM, Yves Parès
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. Antoine
Thanks!
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hi.
See the following for the recent announcement:
http://permalink.gmane.org/gmane.comp.lang.haskell.general/18972
On 8 October 2011 18:37, Yves Parès
Is there a package that allows parsing Text with parsec, ...
HTH, Ozgur

Yes, thanks !
When I saw it, I wondered if Antoine added the instance for Stream Text
because of my question ;)
The thing is that it adds a dependency to parsec, but since Text is more
efficient than String it might not me much of a congestion.
2011/10/9 Ozgur Akgun
Hi.
See the following for the recent announcement: http://permalink.gmane.org/gmScrubs - 3x08 - My Friend the Doctorane.comp.lang.haskell.general/18972http://permalink.gmane.org/gmane.comp.lang.haskell.general/18972
On 8 October 2011 18:37, Yves Parès
wrote: Is there a package that allows parsing Text with parsec, ...
HTH, Ozgur
participants (3)
-
Antoine Latter
-
Ozgur Akgun
-
Yves Parès