[Haskell-cafe] csv one-liner

Marco Túlio Gontijo e Silva marcot at riseup.net
Wed Oct 1 21:48:46 EDT 2008


Op woensdag 01-10-2008 om 10:15 uur [tijdzone +0200], schreef Ketil
Malde:
> Derek Elkins <derek.a.elkins at gmail.com> writes:
> 
> >> parseCSVFromFile "in.csv" >>= return . either (const "error!")
> 
> > Whenever you see this >>= return . f pattern think liftM or fmap or <$>.
> 
> ...and "return . f >>= action" is just "action . f", no?

Maybe you meant "return f >>= action" is the same as "action f".

Greetings.

-- 
marcot
Página: http://marcotmarcot.iaaeee.org/
Blog: http://marcotmarcot.blogspot.com/
Correio: marcot at riseup.net
XMPP: marcot at jabber.org
IRC: marcot at irc.freenode.net
Telefone: 25151920
Celular: 98116720
Endereço:
  Rua Turfa, 639/701
  Prado 30410-370
  Belo Horizonte/MG Brasil




More information about the Haskell-Cafe mailing list