[Haskell-beginners] How to get HLint working?

Erik de Castro Lopo mle+hs at mega-nerd.com
Fri Nov 25 03:04:24 CET 2011


Avery Robinson wrote:

> Hello,
> 
> I'm trying to install HLint but I can't figure out how to use it. It seems
> like the install works, but when I type "hlint file.hs" my terminal gives
> an error. Here's a copy of my terminal output: http://pastebin.com/n071J2mL
> 
> It looks like the install works, but at the end you can see that it doesn't
> function as I am expecting. I'm having difficulty finding relevant
> documentation. Help please?

If you do:

   /Users/averyrobinson/Library/Haskell/ghc-7.0.3/lib/hlint-1.8.18/bin/hlint file.hs

is should work.

Is should also work if you do:

   ~/.cabal/bin/hlint file.hs

If the second one works, then you should add $HOME/.cabal/bin to your
PATH environment variable.

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



More information about the Beginners mailing list