3 ms·
What stopped you from installing ghc-7.6 yourself? I've been using 7.4 (from Platform) and 7.6 in parallel for over half a year without problem.
by merijnv 13y ago
What stopped you from installing ghc-7.6 yourself? I've been using 7.4 (from Platform) and 7.6 in parallel for over half a year without problem.
- exceptione 13y agook! Well I was terrified by the big fat warnings that doing so might break your packages randomly.
- tel 13y agoEasy workaround—use `hsenv --ghc=ghc-X.X.tar.gz --name head` to build an isolated hsenv that uses whichever version of GHC you like. You then activate it with `source .hsenv_head/bin/activate`.
- merijnv 13y agoGHC uses a per-version package database, so that should never be possible for different GHC versions. For example, I have the 7.4 from platform installed in /usr/bin/ghc (the normal location for Platform installs on OSX) and 7.7 installed in ~/ghc. Switching between the two versions is as easy as making sure that ~/ghc/bin is on my path before /usr/bin/ghc. All I need to do is "export PATH=~/ghc/bin:$PATH" and things work. Packages get installed in either ~/Library/Haskell/ghc-7.4.1 or ~/Library/Haskell/ghc-7.7 depending on what's in my path when I run "cabal install".
- exceptione 13y agoAh thanks, did not know that! I'm on Windows but switching paths should be possible on Windows as well. :)