How do I uninstall older versions of GHC?
Asked Answered
N

2

10

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.

Neils answered 4/5, 2016 at 18:4 Comment(5)
I think this is some sort of bug. I installed GHC on a fresh machine and it gave me the same message.Conformist
I would suggest you install stack insteadMarsiella
Why are they down-voting my question is it bad? @Mika'il ThanksNeils
@user32073 this question is off-topic on StackOverflow. It may be more appropriate on superuser.com. I am voting to migrate it there.Zilla
I think it's borderline (maybe the hardest task in Haskell is setting it up) - but it's really only one vote - no big dealMarsiella
L
13

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...

Learned answered 14/5, 2016 at 5:47 Comment(0)
R
1

For removing a GHC version x.y.z, one can also use ghcup rm x.y.z.

Without version number ghcup rm lists the installed versions and asks which one to remove.

Reta answered 30/4, 2021 at 6:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.