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:
4ce88e3
)
A bug in isClosedUnfolding
author
simonpj@microsoft.com
<unknown>
Tue, 9 Mar 2010 17:28:42 +0000
(17:28 +0000)
committer
simonpj@microsoft.com
<unknown>
Tue, 9 Mar 2010 17:28:42 +0000
(17:28 +0000)
isClosedUnfolding should say False for DFUnUnfolding!
compiler/coreSyn/CoreSyn.lhs
patch
|
blob
|
history
diff --git
a/compiler/coreSyn/CoreSyn.lhs
b/compiler/coreSyn/CoreSyn.lhs
index
83692a8
..
b6b6659
100644
(file)
--- a/
compiler/coreSyn/CoreSyn.lhs
+++ b/
compiler/coreSyn/CoreSyn.lhs
@@
-622,6
+622,7
@@
unfoldingArity _ = panic "unfoldingArity"
isClosedUnfolding :: Unfolding -> Bool -- No free variables
isClosedUnfolding (CoreUnfolding {}) = False
+isClosedUnfolding (DFunUnfolding {}) = False
isClosedUnfolding _ = True
-- | Only returns False if there is no unfolding information available at all