summaryrefslogtreecommitdiff
path: root/compiler/main/InteractiveEval.hs-boot
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-05-02 13:54:34 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-05-02 13:54:34 +0000
commit86bec4298d582ef1d8f0a201d6a81145e1be9498 (patch)
treeee095c23e7539ff9853214c44cb099572e21008e /compiler/main/InteractiveEval.hs-boot
parent065ce67b1b6ba6b8f3646b73c7cadd50a001a9af (diff)
downloadhaskell-86bec4298d582ef1d8f0a201d6a81145e1be9498.tar.gz
Refactoring, tidyup and improve layering
The stack of breakpoint resume contexts is now part of the InteractiveContext and managed by the GHC API. This prevents misuse of the resume context by the client (e.g. resuming a breakpoint that isn't the topmost, which would lead to a confused IC at the least). I changed the TypeEnv in the IC to a [Id]. It only contained Ids anyway, and this allows us to have shadowing, which removes an ugly and annoying restriction. The parts of the GHC API which deal with interactive evaluation are now in a module of their own, InteractiveEval.
Diffstat (limited to 'compiler/main/InteractiveEval.hs-boot')
-rw-r--r--compiler/main/InteractiveEval.hs-boot3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/main/InteractiveEval.hs-boot b/compiler/main/InteractiveEval.hs-boot
new file mode 100644
index 0000000000..67b77436d1
--- /dev/null
+++ b/compiler/main/InteractiveEval.hs-boot
@@ -0,0 +1,3 @@
+module InteractiveEval (Resume) where
+
+data Resume