From fb3fb3c60bf0a830b5ef5d17b1b1cd8dffa969b7 Mon Sep 17 00:00:00 2001 From: Chris Done Date: Tue, 12 Aug 2014 00:29:22 -0700 Subject: [PATCH] Add clearing of .ghc environments --- Stackage-Server-FAQ.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Stackage-Server-FAQ.md b/Stackage-Server-FAQ.md index 2a9a56f..ba0f3ca 100644 --- a/Stackage-Server-FAQ.md +++ b/Stackage-Server-FAQ.md @@ -1,3 +1,18 @@ +# How do I clear my existing environment? + +If you already have installed some packages from Hackage or elsewhere and you want to start from a fresh package set, you can remove your `~/.ghc/-` directory. + +For example, in my directory `.ghci` I have: + +$ ls ~/.ghc/ +x86_64-linux-7.2.2 x86_64-linux-7.4.2 x86_64-linux-7.6.2 x86_64-linux-7.6.3 x86_64-linux-7.8.2 + +If I want to clear my GHC 7.2.2. environment, all the user-installed packages, I can remove the directory `x86_64-linux-7.2.2`. **Be careful** that you are sure that you want to clear your package set (re-installing packages takes time!) and that you clear the right one. + +On Windows the `.ghc` directory might be in a directory like `C:\Documents and Settings\HaskellCurry\`. + +Now you can set Stackage as your `remote-repo` and run `cabal update`. + # How do I use it with sandboxes? ## hsenv