setting args from inside ghci

Hal Daume III hdaume@ISI.EDU
Wed, 20 Feb 2002 15:40:50 -0800 (PST)


I would like to be able to set the arguments my program will get with
getArgs inside the ghci shell.  Something like:

Main> :setargs -f myfile -whatever-options-i-want
Main> main

(now, when main has l <- getArgs, l = ["-f", "myfile",
"-whatever-options-i-want"])

Any change this will make it in?

 - Hal

--
Hal Daume III

 "Computer science is no more about computers    | hdaume@isi.edu
  than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume