Re: [Haskell] Re: ANNOUNCE: GHC version 6.8.2
--- Juanma Barranquero <lekktu@gmail.com> wrote: ...
Though, if you're using Emacs on Windows and you do want it to use a different HOME you can set HOME=C:\this\is\my\emacs\home as a new string value in the HKLM\Software\Gnu\Emacs key of the registry.
The registry ... I hadn't thought of that one. Thanks for the tip. However, usually I steer clear of the registry unless absolutely necessary because making a mistake there can render Windows unbootable. In that case, though, would you happen to know which value in the registry would allow me to override HOMEPATH for GHCi? Benjamin L. Russell
[if this thread has to keep running, could you please drop me of the cc? and how did it manage to end up on haskell@ - that is the wrong list ]
In that case, though, would you happen to know which value in the registry would allow me to override HOMEPATH for GHCi?
if you go to the beginning of this thread, when it was still on glasgow-haskell-users@haskell.org , you'll find (13/12/2007): ; if you absolutely want to define a %HOME%, and you ; also absolutely want to keep it different from %HOMEPATH% ; (which means you have two homes to take care of!), then ; you could try a simple workaround: ; ; %HOMEPATH%\.ghci: ; ; :cmd System.Environment.getEnv "HOME" >>= \h->readFile (h++"/.ghci") ; ; %HOME\.ghci ; ; -- as before ie, don't override HOMEPATH, use it (or rather, the place returned by System.Directory.getHomeDirectory) as the place to tell ghci where to look for your favourite holiday, weekend, or winter home; replace HOME with GHCIHOME or whatever you'd like to set. merry christmas everyone!-) claus
participants (2)
-
Benjamin L. Russell -
Claus Reinke