[Haskell] Re: ANNOUNCE: GHC version 6.8.2
Benjamin L. Russell
dekudekuplex at yahoo.com
Fri Dec 21 05:40:47 EST 2007
Thank you; yes, that will work for the time being,
until an option for specifying the %HOME% directory is
re-incorporated back into a future version of GHCi.
It would probably be better if GHCi simply looked for
.ghci in the location specified by the %HOME%
environmental variable (which can be customized),
instead of the one in the %HOMEPATH% variable (which
One of the best solutions, in my opinion, would be if
GHCi looked for .ghci in a location specified by a
custom %GHCHOME% environmental variable, since the
%HOME% variable is also used by Emacs. That way, I
could put .ghci in a location separate from both the
Emacs and OS home directories.
Benjamin L. Russell
--- Simon Marlow <simonmarhaskell at gmail.com> wrote:
> Benjamin L. Russell wrote:
> > This fixed the problem, and on Windows XP
> > Professional, I was able to set GHCi to find .ghci
> > %HOMEPATH%, which turned out to be c:\Documents
> > Settings\<username>.
> > However, I would like to override this setting,
> > either have GHCi look for .ghci in %HOME%, as
> > to %HOMEPATH% (so that this value is not
> > set by the OS), or to set %HOMEPATH% itself to be
> > c:\home.
> > However, when I go to the Control Panel, then to
> > System applet, then to the Advanced tab, then
> click on
> > the Environment Variables button, and then create
> > environmental variable called "HOMEPATH" (either
> > or global), this setting does not override the
> > setting for this environmental variable, and GHCi
> > still looks for .ghci in the default location
> > (c:\Documents and Settings\<username>).
> > Does anybody know how to cause GHCi to look for
> > in c:\home?
> Create a .ghci file in c:\Documents And
> Settings\<user>, with the following
> :cmd readFile "c:\\home\\.ghci"
> Haskell mailing list
> Haskell at haskell.org
More information about the Haskell