allow comments on the command line: convenient in scripts
-----------------------------------------------------------------------------
--- $Id: InteractiveUI.hs,v 1.32 2001/02/06 11:57:30 simonmar Exp $
+-- $Id: InteractiveUI.hs,v 1.33 2001/02/06 16:22:12 simonmar Exp $
--
-- GHC Interactive User Interface
--
doCommand c
doCommand (':' : command) = specialCommand command
+doCommand ('-':'-':_) = return False -- comments, useful in scripts
doCommand expr
= do expr_expanded <- expandExpr expr
-- io (putStrLn ( "Before: " ++ expr ++ "\nAfter: " ++ expr_expanded))