snoyberg/conduit — pull request #54 by mkscrg (2012-07-05 22:31:18+00:00)
Title: Implement Data.Conduit.List.catMaybes and catMaybesM

These combinators allow easy building of pipes that provide the successful results of a fail-able transformation. For example:

import Data.Conduit
import qualified Data.Conduit.List as CL
import Data.Time.Clock (UTCTime)
import Data.Time.Format (parseTime)
import System.Locale (TimeLocale)

parseTimeC :: Monad m => TimeLocale -> String -> GInfConduit String m UTCTime
parseTimeC locale format = CL.catMaybes . parseTime locale format