#! for GHC?
simonmar at microsoft.com
Mon Mar 8 11:20:27 EST 2004
> Can GHC be invoked somehow via the #! mechanism? Put another way, is
> there a GHC analogue to runhugs?
Almost, but not quite. Since 6.2, GHC has the -e switch for invoking
expressions from the command line, which gets a step closer. GHC
doesn't ignore the '#!' line yet, but I can add that. Then, as far as
I'm aware, it should work, albeit a little slowly because it goes
through the ordinary GHCi startup which loads some packages etc.
More information about the Glasgow-haskell-users