wman wrote:
Long story short, I promised him a one-liner to "show the power and beauty of Haskell".

(writeFile "output.csv") =<< (liftM printCSV $ liftM (map updateLine) $ parseCSVFromFile "input.csv")

Is there room for improvement ?

Um... Does anybody else find it interesting that we are "showing the beauty of Haskell" by attempting to construct the most terse, cryptic, unmaintainable tangle of point-free code that the combined mindpower of the entire mailing list can produce?

Yes, there is much to be said for the power and brevity of Haskell. But you *can* go over the top here, people! o_O

Keep it short _yet comprehensible_, IMHO.

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to