summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/GHC/Core/DataCon.hs3
-rw-r--r--compiler/GHC/Types/Id/Make.hs4
2 files changed, 5 insertions, 2 deletions
diff --git a/compiler/GHC/Core/DataCon.hs b/compiler/GHC/Core/DataCon.hs
index bbc02310f7..1b814b5213 100644
--- a/compiler/GHC/Core/DataCon.hs
+++ b/compiler/GHC/Core/DataCon.hs
@@ -195,6 +195,9 @@ Note [Data constructor workers and wrappers]
* INVARIANT: the dictionary constructor for a class
never has a wrapper.
+* See Note [Data Constructor Naming] for how the worker and wrapper
+ are named
+
* Neither_ the worker _nor_ the wrapper take the dcStupidTheta dicts as arguments
* The wrapper (if it exists) takes dcOrigArgTys as its arguments.
diff --git a/compiler/GHC/Types/Id/Make.hs b/compiler/GHC/Types/Id/Make.hs
index dc1663a7ff..b34c0fc8cb 100644
--- a/compiler/GHC/Types/Id/Make.hs
+++ b/compiler/GHC/Types/Id/Make.hs
@@ -845,8 +845,8 @@ dataConWrapperInlinePragma = alwaysInlinePragma { inl_rule = ConLike
{- Note [Activation for data constructor wrappers]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-The Activation on a data constructor wrapper allows it to inline only in Phase
-0. This way rules have a chance to fire if they mention a data constructor on
+The Activation on a data constructor wrapper allows it to inline only in FinalPhase.
+This way rules have a chance to fire if they mention a data constructor on
the left
RULE "foo" f (K a b) = ...
Since the LHS of rules are simplified with InitialPhase, we won't