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