igloo at earth.li
Wed Aug 22 11:49:39 EDT 2007
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
More information about the Cvs-ghc