[Haskell-cafe] csv one-liner

Graham Fawcett graham.fawcett at gmail.com
Tue Sep 30 15:51:54 EDT 2008


2008/9/30 wman <666wman at gmail.com>:
> Thanks a lot, I've had a hunch it was possible to get rid of those those
> liftM's. I turned it into:
>
> (writeFile "output.csv") . printCSV . (map updateLine) . (either (error
> "Chyba pri cteni CSV.") id) =<< parseCSVFromFile "input.csv"
>
> and am sincerely hoping he will try to decypher it's meaning ;-)))

It looks like you've added some good error-czeching code here. :-;

G


More information about the Haskell-Cafe mailing list