Add :run and tweak :main
authorIan Lynagh <igloo@earth.li>
Sat, 19 Jan 2008 16:49:23 +0000 (16:49 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 19 Jan 2008 16:49:23 +0000 (16:49 +0000)
commitc24bd1bbbdc4e20ea5c31b8779a70a5421f44962
treeed67a6f2883193c9cb4641228f360a32201bd0ac
parentb98bec54f4de33f8f60af5c8506b108f676b71ed
Add :run and tweak :main
You can now give :main a Haskell [String] as an argument, e.g.
:main ["foo", "bar"]
and :run is a variant that takes the name of the function to run.
Also, :main now obeys the -main-is flag.
compiler/ghci/InteractiveUI.hs
compiler/utils/Util.lhs
docs/users_guide/ghci.xml