[Haskell-cafe] csv one-liner

Ketil Malde ketil at malde.org
Wed Oct 1 04:15:54 EDT 2008

Derek Elkins <derek.a.elkins at gmail.com> writes:

>> parseCSVFromFile "in.csv" >>= return . either (const "error!")

> Whenever you see this >>= return . f pattern think liftM or fmap or <$>.

...and "return . f >>= action" is just "action . f", no?

If I haven't seen further, it is by standing in the footprints of giants

More information about the Haskell-Cafe mailing list