defaultGamma :: Gamma //includes all default functions
defaultGamma = extend "print" (Forall ["a"] ((IdType "a") ->> VoidType))
$ extend "isEmpty" (Forall ["a"] ((ListType (IdType "a")) ->> BoolType))
- $ extend "read" (Forall [] (IntType ->> (ListType CharType)))
+ $ extend "read" (Forall [] CharType)
zero
sem :: AST -> Either [SemError] AST