X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=sem.icl;h=23fb04aa5aa1778bf3c6ed436b7898b3736600b6;hb=13a108705dbabbc75711ce9b3b29fe508262919f;hp=46749baa87b00806ac08178878ab64dcf0dd26e8;hpb=e34b5f088ff9a86da61afbbe91c2c88f895673c7;p=cc1516.git diff --git a/sem.icl b/sem.icl index 46749ba..23fb04a 100644 --- a/sem.icl +++ b/sem.icl @@ -37,13 +37,15 @@ variableStream :: [String] variableStream = map toString [1..] sem :: AST -> SemOutput -sem (AST fd) = Right $ (AST fd, 'Map'.newMap) +sem (AST fd) = Right (AST fd, 'Map'.newMap) instance toString Scheme where - toString (Forall x t) = concat ["Forall ": map ((+++) "\n") x] +++ toString t + toString (Forall x t) = + concat ["Forall ": map ((+++) "\n") x] +++ toString t instance toString Gamma where - toString mp = concat [concat [k, ": ", toString v, "\n"]\\(k, v)<-'Map'.toList mp] + toString mp = + concat [concat [k, ": ", toString v, "\n"]\\(k, v)<-'Map'.toList mp] instance toString SemError where toString se = "SemError: "