GHC 6.4 release candidates available

Keean Schupke k.schupke at imperial.ac.uk
Fri Mar 4 15:48:36 EST 2005


Further to my last point, what if the top level module is Main...

ghci Main.hs

and that includes a main function, and pragmas, so that main runs
when ghci is finished loading (automatically).

If main runs automatically then the context of ghci must be the
Main module, so why would the options pragmas not be in effect?

for example:

ghc -o test Main.hs

needs no flags and I can then run test with no flags (./test). But:

ghci Main.hs

Now all of a sudden you are telling me I need to provide command line
flags to get it to run (in the interpreter) but I do not need to if I use
the compiler... (remember this worked fine in 6.3 and 6.3 included the
new lazy instance overlap detection)

This seems very inconsistant to me... I really like the ability to put 
any flags code
might need into the source using the OPTIONS pragmas... but it seems to 
undermine
the usefulness of this if ghci ignores the flags.

     Keean






More information about the Glasgow-haskell-users mailing list