multiline commands in GHCi #4316
authorVivian McPhail <haskell.vivian.mcphail@gmail.com>
Fri, 5 Nov 2010 05:13:08 +0000 (05:13 +0000)
committerVivian McPhail <haskell.vivian.mcphail@gmail.com>
Fri, 5 Nov 2010 05:13:08 +0000 (05:13 +0000)
commit4edbeb14e25f71824c53c524028d12440928707e
tree42aaf834306bd335e32f424829af28a1d69d6fbb
parenta056bcdea7901557f8c97f0da69ae194338e550d
multiline commands in GHCi #4316
This patch adds support for multiline commands in GHCi.

The first line of input is lexed.  If there is an active
layout context once the lexer reaches the end of file, the
user is prompted for more input.

Multiline input is exited by an empty line and can be escaped
with a user interrupt.

Multiline mode is toggled with `:set +m`
compiler/parser/Lexer.x
docs/users_guide/ghci.xml
ghc/GhciMonad.hs
ghc/InteractiveUI.hs