@@ -68,7 +68,7 @@ makeEffect ''GlobalCheck
6868data ModuleCheck a where -- Module
6969 KCTypeDefinition :: ModName -> Context -> PC. TyDef -> ModuleCheck Kind
7070
71- -- fixme (cstml & gnumonik): lets reach consensus on these - Note(1).
71+ -- NOTE (cstml & gnumonik): Lets reach consensus on these - Note(1).
7272-- KCClassInstance :: Context -> P.InstanceClause -> ModuleCheck ()
7373-- KCClass :: Context -> P.ClassDef -> ModuleCheck ()
7474
@@ -79,8 +79,6 @@ data KindCheck a where
7979 InferTypeKind :: ModName -> PC. TyDef -> Context -> Type -> KindCheck Kind
8080 CheckKindConsistency :: ModName -> PC. TyDef -> Context -> Kind -> KindCheck Kind
8181
82- -- TypeFromTyDef :: ModName -> P.TyDef -> KindCheck Type -- replaced with constructor by constructor check
83-
8482makeEffect ''KindCheck
8583
8684--------------------------------------------------------------------------------
@@ -139,7 +137,6 @@ localStrategy = reinterpret $ \case
139137
140138runKindCheck :: forall effs {a }. Member Err effs => Eff (KindCheck ': effs ) a -> Eff effs a
141139runKindCheck = interpret $ \ case
142- -- TypeFromTyDef moduleName tydef -> runReader moduleName (tyDef2Type tydef)
143140 TypesFromTyDef moduleName tydef -> runReader moduleName (tyDef2Types tydef)
144141 InferTypeKind _modName tyDef ctx ty -> either (handleErr tyDef) pure $ infer ctx ty
145142 CheckKindConsistency mname def ctx k -> runReader mname $ resolveKindConsistency def ctx k
@@ -278,7 +275,7 @@ pKind2Kind k =
278275 case k ^. # kind of
279276 PC. KindRef PC. KType -> Type
280277 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?
282279 _ -> error " Fixme undefined type"
283280
284281-- =============================================================================
0 commit comments