[Haskell-beginners] Help with CSV

Erik de Castro Lopo mle+hs at mega-nerd.com
Mon Sep 7 22:45:30 EDT 2009


Hong Yang wrote:

> Thanks for your reply. I have a working program now using Text.CSV module.
> 
> Do you see any that can be improved?
> 
> When I print, the screen reads "Just "abc"". How can I get rid of "Just" in
> the most elegant way?

Try Data.Maybe.fromMaybe:

http://haskell.org/ghc/docs/latest/html/libraries/base/Data-Maybe.html#v:fromMaybe

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the Beginners mailing list