diff options
| author | RyanGlScott <ryan.gl.scott@gmail.com> | 2016-04-30 14:06:31 -0400 |
|---|---|---|
| committer | RyanGlScott <ryan.gl.scott@gmail.com> | 2016-04-30 14:06:31 -0400 |
| commit | 2fe7a0aed83cbf2f98904eba68c0aafe28c5fcda (patch) | |
| tree | b7c0ef6e477740abb690f88d5877b088b58df1f5 | |
| parent | 2ae39acd1309c85dbc579976674bcef7172510c2 (diff) | |
| download | haskell-2fe7a0aed83cbf2f98904eba68c0aafe28c5fcda.tar.gz | |
Fix reference to Note in TcCanonical
Previously, it was referring to Note [Decomposing equalities],
but the name of it is actually Note [Decomposing equality].
[ci skip]
| -rw-r--r-- | compiler/types/TyCon.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/types/TyCon.hs b/compiler/types/TyCon.hs index 0f9f4343e4..628eabd171 100644 --- a/compiler/types/TyCon.hs +++ b/compiler/types/TyCon.hs @@ -1510,7 +1510,7 @@ isDataTyCon _ = False -- (where X is the role passed in): -- If (T a1 b1 c1) ~X (T a2 b2 c2), then (a1 ~X1 a2), (b1 ~X2 b2), and (c1 ~X3 c2) -- (where X1, X2, and X3, are the roles given by tyConRolesX tc X) --- See also Note [Decomposing equalities] in TcCanonical +-- See also Note [Decomposing equality] in TcCanonical isInjectiveTyCon :: TyCon -> Role -> Bool isInjectiveTyCon _ Phantom = False isInjectiveTyCon (FunTyCon {}) _ = True @@ -1530,7 +1530,7 @@ isInjectiveTyCon tc@(TcTyCon {}) _ -- | 'isGenerativeTyCon' is true of 'TyCon's for which this property holds -- (where X is the role passed in): -- If (T tys ~X t), then (t's head ~X T). --- See also Note [Decomposing equalities] in TcCanonical +-- See also Note [Decomposing equality] in TcCanonical isGenerativeTyCon :: TyCon -> Role -> Bool isGenerativeTyCon (FamilyTyCon { famTcFlav = DataFamilyTyCon _ }) Nominal = True isGenerativeTyCon (FamilyTyCon {}) _ = False |
