projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ec3c784
)
an expression with a TickBox round it is not in HNF.
author
andy@galois.com
<unknown>
Wed, 25 Oct 2006 20:38:29 +0000
(20:38 +0000)
committer
andy@galois.com
<unknown>
Wed, 25 Oct 2006 20:38:29 +0000
(20:38 +0000)
compiler/coreSyn/CoreUtils.lhs
patch
|
blob
|
history
diff --git
a/compiler/coreSyn/CoreUtils.lhs
b/compiler/coreSyn/CoreUtils.lhs
index
d82acb9
..
146f8cf
100644
(file)
--- a/
compiler/coreSyn/CoreUtils.lhs
+++ b/
compiler/coreSyn/CoreUtils.lhs
@@
-620,6
+620,10
@@
exprIsHNF (Lit l) = True
exprIsHNF (Type ty) = True -- Types are honorary Values;
-- we don't mind copying them
exprIsHNF (Lam b e) = isRuntimeVar b || exprIsHNF e
+exprIsHNF (Note (TickBox {}) _)
+ = False
+exprIsHNF (Note (BinaryTickBox {}) _)
+ = False
exprIsHNF (Note _ e) = exprIsHNF e
exprIsHNF (Cast e co) = exprIsHNF e
exprIsHNF (App e (Type _)) = exprIsHNF e