
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? Avery

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/

On Friday 25 November 2011, 02:35:52, 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?
Is /Users/averyrobinson/Library/Haskell/ghc-7.0.3/lib/hlint-1.8.18/bin in your path? Probably not, that directory was likely only created when hlint was first installed. That's an odd configuration for cabal to create a new directory for an executable to install in. I suggest letting cabal install executables in ~/.cabal/bin (edit your ~/.cabal/config, the install-dirs stanzas; and add that to your path), or, if you wish some other directory in your path.

On Thu, Nov 24, 2011 at 21:19, Daniel Fischer < daniel.is.fischer@googlemail.com> wrote:
Is
/Users/averyrobinson/Library/Haskell/ghc-7.0.3/lib/hlint-1.8.18/bin
in your path? Probably not, that directory was likely only created when hlint was first installed. That's an odd configuration for cabal to create a new directory for an executable to install in.
Yes, but Haskell Platform cabal on OS X does that sometimes (I haven't figured out the logic behind when it does so and when it uses ~/Library/Haskell/bin --- note, *not* ~/.cabal/bin, H-P changed the paths for OS X), but I also haven't tried very hard to figure it out. -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms
participants (4)
-
Avery Robinson
-
Brandon Allbery
-
Daniel Fischer
-
Erik de Castro Lopo