@@ -68,7 +68,7 @@ makeEffect ''GlobalCheck
68
68
data ModuleCheck a where -- Module
69
69
KCTypeDefinition :: ModName -> Context -> PC. TyDef -> ModuleCheck Kind
70
70
71
- -- fixme (cstml & gnumonik): lets reach consensus on these - Note(1).
71
+ -- NOTE (cstml & gnumonik): Lets reach consensus on these - Note(1).
72
72
-- KCClassInstance :: Context -> P.InstanceClause -> ModuleCheck ()
73
73
-- KCClass :: Context -> P.ClassDef -> ModuleCheck ()
74
74
@@ -79,8 +79,6 @@ data KindCheck a where
79
79
InferTypeKind :: ModName -> PC. TyDef -> Context -> Type -> KindCheck Kind
80
80
CheckKindConsistency :: ModName -> PC. TyDef -> Context -> Kind -> KindCheck Kind
81
81
82
- -- TypeFromTyDef :: ModName -> P.TyDef -> KindCheck Type -- replaced with constructor by constructor check
83
-
84
82
makeEffect ''KindCheck
85
83
86
84
--------------------------------------------------------------------------------
@@ -139,7 +137,6 @@ localStrategy = reinterpret $ \case
139
137
140
138
runKindCheck :: forall effs {a }. Member Err effs => Eff (KindCheck ': effs ) a -> Eff effs a
141
139
runKindCheck = interpret $ \ case
142
- -- TypeFromTyDef moduleName tydef -> runReader moduleName (tyDef2Type tydef)
143
140
TypesFromTyDef moduleName tydef -> runReader moduleName (tyDef2Types tydef)
144
141
InferTypeKind _modName tyDef ctx ty -> either (handleErr tyDef) pure $ infer ctx ty
145
142
CheckKindConsistency mname def ctx k -> runReader mname $ resolveKindConsistency def ctx k
@@ -278,7 +275,7 @@ pKind2Kind k =
278
275
case k ^. # kind of
279
276
PC. KindRef PC. KType -> Type
280
277
PC. KindArrow l r -> pKind2Kind l :->: pKind2Kind r
281
- -- FIXME (cstml) what is an undefined type meant to mean?
278
+ -- NOTE (cstml): What is an Kind type meant to mean?
282
279
_ -> error " Fixme undefined type"
283
280
284
281
-- =============================================================================
0 commit comments