[Haskell-cafe] file splitter with enumerator package

Yves Parès limestrael at gmail.com
Mon Jul 25 10:31:28 CEST 2011


Sorry, I'm only beginning to understand iteratees, but then how do you
access each line of text output by the enumeratee "lines" within an
iteratee?

2011/7/24 Felipe Almeida Lessa <felipe.lessa at gmail.com>

> On Sun, Jul 24, 2011 at 12:28 PM, Yves Parès <limestrael at gmail.com> wrote:
> > If you used Data.Enumerator.Text, you would maybe benefit the "lines"
> > function:
> >
> > lines :: Monad m => Enumeratee Text Text m b
>
> It gets arbitrary blocks of text and outputs lines of text.
>
> > But there is something I don't get with that signature:
> > why isn't it:
> > lines :: Monad m => Enumeratee Text [Text] m b
> > ??
>
> Lists of lines of text?
>
> Cheers, =)
>
> --
> Felipe.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110725/8c8371a4/attachment.htm>


More information about the Haskell-Cafe mailing list