[Haskell-cafe] csv one-liner

wman 666wman at gmail.com
Tue Sep 30 15:54:01 EDT 2008


True, true. And i told myself no-one would notice ;-))

On Tue, Sep 30, 2008 at 9:51 PM, Graham Fawcett <graham.fawcett at gmail.com>wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080930/94546490/attachment.htm


More information about the Haskell-Cafe mailing list