On Wed, Aug 22, 2007 at 12:12:51PM -0300, Isaac Dupree wrote:
> 
> runghc -- -- -fglasgow-exts
> 
> would be needed to run a file named "-fglasgow-exts", compared to

I don't think we should worry too much about making it easy for people
to call their sources -fglasgow-exts.hs. In fact, I'm not even too
bothered about people who want to pass -fglasgow-exts as a flag, rather
than (a) using an OPTIONS_GHC pragma (b) using more specific -XFoo flags
(c) using a more portable LANGUAGE Foo pragma.

> In any case it seems like ghc ought to have a --run flag to make ghc 
> itself run a file like runghc, similar to --interactive/ghci?

That might be nice: ghc GHCFLAGS --run MODULE PROGRAMFLAGS

However, runghc would still need to work out which GHC to run, and would
still need to work out where to insert the "--run" in the arguments it
is given.


Thanks
Ian

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to