eagletmt / ghcmod-vim

Happy Haskell programming on Vim, powered by ghc-mod
http://www.vim.org/scripts/script.php?script_id=4473
433 stars 59 forks source link

consider adding `stack install ghc-mod` to docs as alternative to cabal #84

Open wolftune opened 8 years ago

wolftune commented 8 years ago

For projects built with Stack, stack install ghc-mod will work (as long as ~/.local/bin is in the PATH), maybe mention that in the docs so people can know to do that as an alternative to cabal install ghc-mod

wolftune commented 8 years ago

Note: currently stack install ghc-mod --resolver nightly is required until ghc-mod makes it into Stackage LTS (currently not there yet as of lts 3.6)

lpil commented 8 years ago

:+1:

etcinit commented 8 years ago

:+1:

DanielG commented 8 years ago

Unfortunately stack gives people a false sense of security, so when ill explained this can be a problem: https://www.reddit.com/r/haskell/comments/455k54/ghcmode_preludechar_bad_argument_error/

Specifically:

I'm surprised, stack manage to use the correct version of ghc and the correct libraries so I assume it could handle the correct version of ghc-mod. Like stack exec ghc-mode ... I'm apparently wrong.

Also I'm working on the ultimate guide for setting up ghc-mod (aka. the README) over here: ghc-mod wiki: NEW_README and the Vim section is pretty empty in case anyone is feeling motivated.