
8 Mar
2004
8 Mar
'04
6:20 a.m.
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. Cheers, Simon