serras / emacs-haskell-tutorial

Tutorial on setting up Emacs to do Haskell programming
690 stars 100 forks source link

Cabal hell #14

Closed zh217 closed 9 years ago

zh217 commented 10 years ago

As it currently stands, it is impossible to follow this tutorial exactly as written since installing the packages using the current version of ghc in the order given will lead to package conflicts, and cabal will refuse to work. Even installing all packages at once doesn't work on a system I recently tried -- cabal somehow tries to install a very old version of ghc-mod and fails.

It is a bit unfortunate that beginners have to endure these things, but maybe the tutorial should include a section telling the reader what to do when cabal hell is encountered, for example

rm -rf `find ~/.ghc -maxdepth 1 -type d`; rm -rf ~/.cabal/lib; rm -rf ~/.cabal/packages; rm -rf ~/.cabal/share;
levinotik commented 9 years ago

:+1:

serras commented 9 years ago

Thanks for reporting, I added a section about this in the tutorial.