projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Whoops, *don't* reset the complete session in 'withLocalCallbacks'.
[ghc-hetmet.git]
/
compiler
/
main
/
HscTypes.lhs
diff --git
a/compiler/main/HscTypes.lhs
b/compiler/main/HscTypes.lhs
index
c187932
..
e79acf4
100644
(file)
--- a/
compiler/main/HscTypes.lhs
+++ b/
compiler/main/HscTypes.lhs
@@
-480,7
+480,8
@@
withLocalCallbacks f m = do
let cb' = f cb0
setSession (hsc_env { hsc_callbacks = cb' `seq` cb' })
r <- m
- setSession (hsc_env { hsc_callbacks = cb0 })
+ hsc_env' <- getSession
+ setSession (hsc_env' { hsc_callbacks = cb0 })
return r
\end{code}