A bug in isClosedUnfolding
authorsimonpj@microsoft.com <unknown>
Tue, 9 Mar 2010 17:28:42 +0000 (17:28 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 9 Mar 2010 17:28:42 +0000 (17:28 +0000)
isClosedUnfolding should say False for DFUnUnfolding!

compiler/coreSyn/CoreSyn.lhs

index 83692a8..b6b6659 100644 (file)
@@ -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