How do I uninstall older versions of GHC?

2019-04-07 02:07发布

问题:

I installed Haskell Platform 7.10.3 on my mac and when it finished it said that it had detected older versions of GHC and to uninstall them, but how do I do that?

I'm using a macbook air with OS X 10.11.3.

回答1:

You can uninstall prior platforms by running

uninstall-hs from the command line.

You'll get an output like:

-- Versions found on this system
7.10.3
-- To remove a version and all earlier: uninstall-hs thru VERSION
-- To remove only a single version:     uninstall-hs only VERSION

And you can proceed from there...