[Haskell-beginners] HLint fails to give suggestions

Erik de Castro Lopo mle+hs at mega-nerd.com
Wed May 15 20:25:35 CEST 2013


irfan hudda wrote:

> Because the code
> fun1 :: Int -> String
> fun1 1 = "hell"
> fun1 2 = 3
> has obvious errors I was expecting HLint to display those errors.

The compiler show errors, hlint provides coding style suggestions.

Two different tools for two different jobs. I usually only run
hlint on code after I am sure it compiles.

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



More information about the Beginners mailing list