[project @ 2003-09-04 11:08:46 by simonmar]
authorsimonmar <unknown>
Thu, 4 Sep 2003 11:08:48 +0000 (11:08 +0000)
committersimonmar <unknown>
Thu, 4 Sep 2003 11:08:48 +0000 (11:08 +0000)
commite98cf284e1181d6cd67ec90b8d1c4f06eca7bc81
tree0942acd1c9906a280d8f03499d6867bc12e91254
parentd0d9c9362fb1c27e7348acdc7085f535ccdaea43
[project @ 2003-09-04 11:08:46 by simonmar]
Add a new command-line flag -e EXPR, which runs ghc in interactive
mode and evaluates EXPR only before exiting.

Also, the lexer now ignores lines beginning with "#!".  This is so
that we can use ghc as a scripting language with Unix-style scripts
beginning with

#! /usr/local/bin/ghc -e main

(well, it's not quite that simple, but I'll leave the details for the
more enterprising hackers).
ghc/compiler/ghci/InteractiveUI.hs
ghc/compiler/main/DriverFlags.hs
ghc/compiler/main/DriverState.hs
ghc/compiler/main/Main.hs
ghc/compiler/parser/Lex.lhs