[Haskell-beginners] Help with enumerator pipeline

Felipe Almeida Lessa felipe.lessa at gmail.com
Thu Sep 1 03:50:45 CEST 2011


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.



More information about the Beginners mailing list