Comments only
authorsimonpj@microsoft.com <unknown>
Wed, 1 Nov 2006 14:23:43 +0000 (14:23 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 1 Nov 2006 14:23:43 +0000 (14:23 +0000)
compiler/basicTypes/DataCon.lhs
compiler/basicTypes/MkId.lhs

index b2e166b..d7a7e2a 100644 (file)
@@ -309,6 +309,7 @@ data DataCon
                                        -- and *including* existential dictionaries
 
        dcRepStrictness :: [StrictnessMark],    -- One for each *representation* argument       
+               -- See also Note [Data-con worker strictness] in MkId.lhs
 
        dcRepType   :: Type,    -- Type of the constructor
                                --      forall a x y. (a:=:(x,y), Ord x) => x -> y -> MkT a
index 88d889a..e3b40b8 100644 (file)
@@ -246,6 +246,7 @@ mkDataConIds wrap_name wkr_name data_con
                                                        -- even if arity = 0
 
     wkr_sig = mkStrictSig (mkTopDmdType (replicate wkr_arity topDmd) cpr_info)
+       --      Note [Data-con worker strictness]
        -- Notice that we do *not* say the worker is strict
        -- even if the data constructor is declared strict
        --      e.g.    data T = MkT !(Int,Int)