@@ -569,7 +569,7 @@ pprTcTyVarDetails (MetaTv { mtv_info = info, mtv_tclvl = tclvl })
569
569
570
570
-------------------------------------
571
571
-- UserTypeCtxt describes the origin of the polymorphic type
572
- -- in the places where we need to an expression has that type
572
+ -- in the places where we need an expression to have that type
573
573
574
574
data UserTypeCtxt
575
575
= FunSigCtxt -- Function type signature, when checking the type
@@ -708,7 +708,7 @@ Note [TcLevel and untouchable type variables]
708
708
709
709
* A unification variable is *touchable* if its level number
710
710
is EQUAL TO that of its immediate parent implication,
711
- and it is a TauTv or TyVarTv (but /not/ FlatMetaTv or FlatSkolTv
711
+ and it is a TauTv or TyVarTv (but /not/ FlatMetaTv or FlatSkolTv)
712
712
713
713
Note [WantedInv]
714
714
~~~~~~~~~~~~~~~~
@@ -975,7 +975,7 @@ anyRewritableTyVar ignore_cos role pred ty
975
975
go rl bvs (CoercionTy co) = go_co rl bvs co -- ToDo: check
976
976
977
977
go_tc NomEq bvs _ tys = any (go NomEq bvs) tys
978
- go_tc ReprEq bvs tc tys = foldr ( (&&) . go_arg bvs) False $
978
+ go_tc ReprEq bvs tc tys = any ( go_arg bvs)
979
979
(tyConRolesRepresentational tc `zip` tys)
980
980
981
981
go_arg bvs (Nominal , ty) = go NomEq bvs ty
@@ -1014,7 +1014,7 @@ out the other (Trac #14363).
1014
1014
********************************************************************* -}
1015
1015
1016
1016
data CandidatesQTvs -- See Note [Dependent type variables]
1017
- -- See Note [CandidatesQTvs determinism]
1017
+ -- See Note [CandidatesQTvs determinism and order ]
1018
1018
= DV { dv_kvs :: DTyCoVarSet -- "kind" variables (dependent)
1019
1019
, dv_tvs :: DTyVarSet -- "type" variables (non-dependent)
1020
1020
-- A variable may appear in both sets
@@ -1178,8 +1178,7 @@ isFloatedTouchableMetaTyVar ctxt_tclvl tv
1178
1178
| isTyVar tv -- See Note [Coercion variables in free variable lists]
1179
1179
, MetaTv { mtv_tclvl = tv_tclvl, mtv_info = info } <- tcTyVarDetails tv
1180
1180
, not (isFlattenInfo info)
1181
- = ASSERT2 ( tcIsTcTyVar tv, ppr tv )
1182
- tv_tclvl `strictlyDeeperThan` ctxt_tclvl
1181
+ = tv_tclvl `strictlyDeeperThan` ctxt_tclvl
1183
1182
1184
1183
| otherwise = False
1185
1184
@@ -1195,8 +1194,7 @@ isTyConableTyVar tv
1195
1194
-- with a type constructor application; in particular,
1196
1195
-- not a TyVarTv
1197
1196
| isTyVar tv -- See Note [Coercion variables in free variable lists]
1198
- = ASSERT2 ( tcIsTcTyVar tv, ppr tv )
1199
- case tcTyVarDetails tv of
1197
+ = case tcTyVarDetails tv of
1200
1198
MetaTv { mtv_info = TyVarTv } -> False
1201
1199
_ -> True
1202
1200
| otherwise = True
@@ -1213,7 +1211,7 @@ isFskTyVar tv
1213
1211
MetaTv { mtv_info = FlatSkolTv } -> True
1214
1212
_ -> False
1215
1213
1216
- -- | True of both given and wanted flatten-skolems (fak and usk )
1214
+ -- | True of both given and wanted flatten-skolems (fmv and fsk )
1217
1215
isFlattenTyVar tv
1218
1216
= ASSERT2 ( tcIsTcTyVar tv, ppr tv )
1219
1217
case tcTyVarDetails tv of
@@ -1228,16 +1226,14 @@ isSkolemTyVar tv
1228
1226
1229
1227
isOverlappableTyVar tv
1230
1228
| isTyVar tv -- See Note [Coercion variables in free variable lists]
1231
- = ASSERT2 ( tcIsTcTyVar tv, ppr tv )
1232
- case tcTyVarDetails tv of
1229
+ = case tcTyVarDetails tv of
1233
1230
SkolemTv _ overlappable -> overlappable
1234
1231
_ -> False
1235
1232
| otherwise = False
1236
1233
1237
1234
isMetaTyVar tv
1238
1235
| isTyVar tv -- See Note [Coercion variables in free variable lists]
1239
- = ASSERT2 ( tcIsTcTyVar tv, ppr tv )
1240
- case tcTyVarDetails tv of
1236
+ = case tcTyVarDetails tv of
1241
1237
MetaTv {} -> True
1242
1238
_ -> False
1243
1239
| otherwise = False
0 commit comments