summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorPatrick Palka <patrick@parcs.ath.cx>2012-07-08 12:49:22 -0400
committerSimon Marlow <marlowsd@gmail.com>2012-07-11 14:33:04 +0100
commit520d82b6ea81b39fcea6b4c06e40b38b85745599 (patch)
tree1e939d6281973455866543ddcb2f4d7e362fade0 /ghc
parent5b93af461498db8352045b16ccdd90efcd6b8023 (diff)
downloadhaskell-520d82b6ea81b39fcea6b4c06e40b38b85745599.tar.gz
Allow 'default' declarations in GHCi
Diffstat (limited to 'ghc')
-rw-r--r--ghc/InteractiveUI.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs
index 0dbd8ce478..fd5337d14d 100644
--- a/ghc/InteractiveUI.hs
+++ b/ghc/InteractiveUI.hs
@@ -794,7 +794,7 @@ enqueueCommands cmds = do
-- rather than a stmt.
declPrefixes :: [String]
declPrefixes = ["class ","data ","newtype ","type ","instance ", "deriving ",
- "foreign "]
+ "foreign ", "default ", "default("]
-- | Entry point to execute some haskell code from user
runStmt :: String -> SingleStep -> GHCi Bool