curry gotcha
[cc1516.git] / sem.dcl
diff --git a/sem.dcl b/sem.dcl
index a2bcd57..a570597 100644 (file)
--- a/sem.dcl
+++ b/sem.dcl
@@ -2,18 +2,15 @@ definition module sem
 
 import qualified Data.Map as Map
 from Data.Either import :: Either
-from AST import :: AST, :: Pos, :: Type
+from AST import :: AST, :: Pos, :: Type, :: FieldSelector, :: Op2
 from StdOverloaded import class toString
 
 :: SemError 
-       = ParseError Pos String 
-       | UnifyError Pos Type Type 
-       | UnifyErrorStub Type Type 
-       | Error String
 :: Gamma
 :: SemOutput :== Either [SemError] (AST, Gamma)
+:: Constraints :== [(Type, Type)]
 
 instance toString SemError
 instance toString Gamma
 
-sem :: AST -> SemOutput
+sem :: AST -> Either [SemError] (AST, Gamma)