[Haskell-cafe] Cleaner way to write code and handle errors?

Erik de Castro Lopo mle+hs at mega-nerd.com
Tue Jun 28 10:32:54 CEST 2011


Ivan Lazar Miljenovic wrote:

> I don't think you need all those return () everywhere... And at the
> end, why do you do "line <- getLine" when you don't use the result?

The hlint program would have flagged both of those and possibly
others. See:

    http://community.haskell.org/~ndm/hlint/

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



More information about the Haskell-Cafe mailing list