[Haskell-cafe] csv one-liner

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Wed Oct 1 16:25:04 EDT 2008

On Oct 1, 2008, at 15:51 , Andrew Coppin wrote:
> 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?

To a certain geek mindset, that *is* the power and beauty.
(Then again, that's the mindset that publishes incomprehensible JAPHs  
in their .signature files.)

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list