How to install the Haskell platform on top of a previous installation?

I recently worked with Haskell and installed gtk2hs (the gtk library for Haskell) a few days ago using MacPorts. For some reason, MacPorts found it necessary to install GHC 6.10 on top of my previous installation of GHC 6.12, but I don't care.

Now I am in the desire to improve parallelism support for the latest Haskell platform, so I installed it today and it was successfully installed, except that when I enter "ghc -v" in Terminal, they tell me that I still have GHC 6.10 left.

I tried using uninstall-hs and it tells me that I have three Haskells on my system: versions 6.12, 6.12.3 and 7.04. I'm not sure how this 6.12.3 came about, and what happened with 6.10? Most importantly, how can I run version 7.04? Thanks in advance for your help!

+6
source share
2 answers

You must completely clean your MacPorts from installing GHC and the current installation of the platform and install Haskell Platform directly using the OS X installer . After that, future versions of the Haskell platform can be easily updated simply by installing them.

The following command should remove the GPC MacPorts:

$ sudo port uninstall --follow-dependents ghc 

You can do something like find /usr /opt/local -name '*ghc*' after deleting everything to see if there are any traces left.

+3
source

To really clear an old installation, you need to log in and delete things manually.

It will be very useful: Everywhere where the GHC / Haskell platform is installed

You might also want to check out: http://www.vex.net/~trebla/haskell/sicp.xhtml

+2
source

Source: https://habr.com/ru/post/905048/


All Articles