diff options
author | Vivian McPhail <haskell.vivian.mcphail@gmail.com> | 2010-11-05 05:13:08 +0000 |
---|---|---|
committer | Vivian McPhail <haskell.vivian.mcphail@gmail.com> | 2010-11-05 05:13:08 +0000 |
commit | 4edbeb14e25f71824c53c524028d12440928707e (patch) | |
tree | 42aaf834306bd335e32f424829af28a1d69d6fbb /ghc/GhciMonad.hs | |
parent | a056bcdea7901557f8c97f0da69ae194338e550d (diff) | |
download | haskell-4edbeb14e25f71824c53c524028d12440928707e.tar.gz |
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`
Diffstat (limited to 'ghc/GhciMonad.hs')
-rw-r--r-- | ghc/GhciMonad.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ghc/GhciMonad.hs b/ghc/GhciMonad.hs index fd6349720e..779fad23e9 100644 --- a/ghc/GhciMonad.hs +++ b/ghc/GhciMonad.hs @@ -90,6 +90,7 @@ data GHCiOption = ShowTiming -- show time/allocs after evaluation | ShowType -- show the type of expressions | RevertCAFs -- revert CAFs after every evaluation + | Multiline -- use multiline commands deriving Eq data BreakLocation |