Skip to content

Commit 54100bd

Browse files
committed
Applied suggestions
1 parent c1a3f33 commit 54100bd

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

lambda-buffers-compiler/app/LambdaBuffers/Compiler/Cli/Compile.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ compile opts = do
2929
compInp <- readCompilerInput (opts ^. input)
3030
case runCompiler compInp of
3131
Left compErr -> do
32-
print @String "Encountered errors during Compilation"
32+
putStrLn "Encountered errors during Compilation"
3333
writeCompilerError (opts ^. output) compErr
3434
Right compRes -> do
35-
print @String "Compilation succeeded"
35+
putStrLn "Compilation succeeded"
3636
writeCompilerOutput (opts ^. output) (defMessage & compilerResult .~ compRes)
3737
return ()
3838

lambda-buffers-compiler/src/LambdaBuffers/Compiler/KindCheck.hs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ makeEffect ''GlobalCheck
6868
data 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-
8482
makeEffect ''KindCheck
8583

8684
--------------------------------------------------------------------------------
@@ -139,7 +137,6 @@ localStrategy = reinterpret $ \case
139137

140138
runKindCheck :: forall effs {a}. Member Err effs => Eff (KindCheck ': effs) a -> Eff effs a
141139
runKindCheck = 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

Comments
 (0)