haskellmode and hsenv
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.
一个简单的解决方案是破解一个.vimrc文件
let g:ghc="/path/to/hsenv/ghc"
链接地址: http://www.djcxy.com/p/69784.html
上一篇: 是否有任何基于Maven的HTML验证器
下一篇: haskellmode和hsenv