add :cmd
authorSimon Marlow <simonmar@microsoft.com>
Thu, 17 May 2007 11:05:55 +0000 (11:05 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 17 May 2007 11:05:55 +0000 (11:05 +0000)
commit622e67a80631c7528ebfa51e9a863c27e74f1c6b
treea176512512572e79610e4d49e45c51bb84f5f8d0
parent79fb37d4fe333f5c3dd7f08a6df102aed05394d9
add :cmd
:cmd <expr> executes <expr> :: IO String, takes the resulting string
and executes it as a sequence of commands.  This is useful for doing
macro-ish things with ":set stop", for example.
compiler/ghci/InteractiveUI.hs