I've been using hsenv (with great success!) to deal with the usual cabal dependency issues.
Its terrific, but there is one glitch I can't get around: how to persuade the (also excellent!) vim-haskellmode to use the environment variables set by hsenv -- namely the paths to GHC, cabal database and so on when compiling, generating tags etc.
Does anyone know how to solve this problem?
Sorry, hit the wrong button -- I should be asking questions about how to use SO instead :)
Anyways, an even better trick is to put this into the .vimrc
let g:ghc=system("which ghc")
This way (assuming that g:ghc
gets bound when you run vim) it will pick up whichever ghc
is being currently used (by hsenv).
Ranjit Jhala.
One, simple solution is to hack one's .vimrc so that
let g:ghc="/path/to/hsenv/ghc"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With