an expression with a TickBox round it is not in HNF.
authorandy@galois.com <unknown>
Wed, 25 Oct 2006 20:38:29 +0000 (20:38 +0000)
committerandy@galois.com <unknown>
Wed, 25 Oct 2006 20:38:29 +0000 (20:38 +0000)
compiler/coreSyn/CoreUtils.lhs

index d82acb9..146f8cf 100644 (file)
@@ -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