projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comments only
[ghc-hetmet.git]
/
compiler
/
deSugar
/
DsBreakpoint.lhs
diff --git
a/compiler/deSugar/DsBreakpoint.lhs
b/compiler/deSugar/DsBreakpoint.lhs
index
a0886cb
..
1d17c97
100644
(file)
--- a/
compiler/deSugar/DsBreakpoint.lhs
+++ b/
compiler/deSugar/DsBreakpoint.lhs
@@
-59,7
+59,8
@@
mkBreakpointExpr loc bkptFuncId = do
let scope = filter (isValidType .idType ) scope'
mod_name = moduleNameFS$ moduleName mod
if null scope && instrumenting
let scope = filter (isValidType .idType ) scope'
mod_name = moduleNameFS$ moduleName mod
if null scope && instrumenting
- then return (l$ HsVar lazyId)
+ -- need to return some expresion, hence lazy is used here as a noop (hopefully)
+ then return (l$ HsVar lazyId)
else do
when (not instrumenting) $
warnDs (text "Extracted ids:" <+> (ppr scope $$
else do
when (not instrumenting) $
warnDs (text "Extracted ids:" <+> (ppr scope $$