[Haskell-beginners] Help with enumerator pipeline

Michael Xavier nemesisdesign at gmail.com
Thu Sep 1 04:59:08 CEST 2011


It compiles! I'm glad I got to preserve the ordering of the enumeratees.

Thanks!

On Wed, Aug 31, 2011 at 6:50 PM, Felipe Almeida Lessa <
felipe.lessa at gmail.com> wrote:

> What about
>
> pipeline :: MonadIO m => Enumerator ByteString m () -> [Text] ->
> [Filter] -> Iteratee ByteString m ()
> pipeline s rfs fs = s $$ splitLines
>                      =$ parseLine
>                      =$ filterObjects fs
>                       =$ restrictObjects rfs
>                      =$ encoder
>                      =$ output
>
> Cheers,
>
> --
> Felipe.
>



-- 
Michael Xavier
http://www.michaelxavier.net
LinkedIn <http://www.linkedin.com/pub/michael-xavier/13/b02/a26>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110831/5b7ff304/attachment.htm>


More information about the Beginners mailing list