
8 Mar
2004
8 Mar
'04
6:20 a.m.
On Sat, Mar 06 2004, Dean Herington wrote:
Can GHC be invoked somehow via the #! mechanism? Put another way, is there a GHC analogue to runhugs?
Well, ghc now has an -e flag to evaluate stuff directly from the prompt (e.g. ghc -e Main.main Main.hs). But you can't execute shell-scripts from a shell-script with #! so you can't just put it in your Haskell module. Neither can you use the binary directly since you can only give one argument to programs executed with #! and you need both -e and -B. /Hampus -- Homepage: http://www.dtek.chalmers.se/~d00ram E-mail: d00ram@dtek.chalmers.se "Det är aldrig försent att ge upp"