readchar in sem
[cc1516.git] / sem.icl
diff --git a/sem.icl b/sem.icl
index 0ffcdd2..0c5b552 100644 (file)
--- a/sem.icl
+++ b/sem.icl
@@ -51,7 +51,7 @@ variableStream = map toString [1..]
 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