
Hi, I use Windows XP and I like to start Ghci in extended mode. What do I have to do in order not having to type always :set -fglasgow-exts thanks Jan

You can probably pass it the parameter -fglasgow-exts on the
commandline. Though I've never used windows xp, in previous versions
of windows, you could add commandline parameters to shortcuts in their
properties dialog, so you might check there.
- Cale
On 4/28/05, SCOTT J.
Hi,
I use Windows XP and I like to start Ghci in extended mode. What do I have to do in order not having to type always
:set -fglasgow-exts
thanks Jan _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

SCOTT J writes:
What do I have to do in order not having to type always :set -fglasgow-exts
Add the line {-# OPTIONS -fglasgow-exts #-} at the top of the source code. Then the flag will be set when you load the module. This works for all kind of settings: http://haskell.org/ghc/docs/latest/html/users_guide/using-ghc.html#source-fi... Peter

On Thu, 28 Apr 2005, Peter Simons wrote:
SCOTT J writes:
What do I have to do in order not having to type always :set -fglasgow-exts
Add the line
{-# OPTIONS -fglasgow-exts #-}
at the top of the source code. Then the flag will be set when you load the module.
This option is local to each module, isn't it? I.e. with this comment you can tag the modules which need extensions.

SCOTT J. wrote:
Hi,
I use Windows XP and I like to start Ghci in extended mode. What do I have to do in order not having to type always
:set -fglasgow-exts
under unix this line can be put in a file ".ghci" in your home directory. Maybe $HOME is a variable under windows as well (and it is looked up accordingly). Christian http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-dot-files.html

Works in the "current" directory too, which is what I do under WinXP. I have a run_ghci.bat file in my src folder, which looks something like: set path=c:\ghc\ghc6.4\bin;%path% start ghci and the .ghci file is in this dir too. Christian Maeder wrote:
SCOTT J. wrote:
Hi,
I use Windows XP and I like to start Ghci in extended mode. What do I have to do in order not having to type always
:set -fglasgow-exts
under unix this line can be put in a file ".ghci" in your home directory. Maybe $HOME is a variable under windows as well (and it is looked up accordingly).
Christian
http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-dot-files.html _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (6)
-
Alistair Bayley
-
Cale Gibbard
-
Christian Maeder
-
Henning Thielemann
-
Peter Simons
-
SCOTT J.