Re: Question about updating GHC on MacOS
Alfredo Di Napoli <alfredo.dinapoli <at> gmail.com>
2013-03-14 09:23:43 GMT
From my $0.2 experience, if you are planning of having multiple GHC installation, it would be better to do a fresh install using the bootstrapped GHC you can find on the website. Roughly I have done this way (on my Mac and on My EC2 instance):
(inside a ghc bootstrapped folder)
./configure --prefix=~/Library/Haskell/ghc-xxx (where xxx is the version)
make install
(then inside ~/Library/Haskell)
ln -s ghc-xxx current
ln -s current/bin bin
This way my current GHC is pointing to current inside ~/Library/Haskell/current and my bin are updated accordingly (make sure to add /bin to your $PATH!). Then you install cabal-install and you are pretty much sorted. The advantage of this approach is that you have the control over the installation process, but other suggestion (like Alp's one) are pretty good too. Mostly depends on what you think will work best for you :)
A.
On 11 March 2013 11:33, Alp Mestanogullari
<alpmestan <at> gmail.com> wrote:
I don't think so. However, you can install the OS X binaries for ghc 7.6.2 and make that sit just next to your Haskell Platform install. You can even use your existing cabal-install to install packages for the freshly installed ghc by doing 'cabal install foo --with-ghc=/path/to/ghc'. Just watch which ghc does become the default (it's a matter of replacing a symlink) and that it satisfies you.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe