Skip to content

Commit

Permalink
Recognise IO (not M) in type signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
hrutvik committed Mar 20, 2023
1 parent 8c4eaa2 commit 583e2ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/parsing/ast_to_cexpScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,10 @@ Definition translate_type_def:
else if s = "Bool" then do assert (tys = []); return $ PrimTy Bool; od
else if s = "Integer" then do assert (tys = []); return $ PrimTy Integer od
else if s = "String" then do assert (tys = []); return $ PrimTy String od
else if s = "M" then do assert (LENGTH tys = 1);
t <- translate_type nm_map arg_map (HD tys);
return $ M t;
od
else if s = "IO" then do assert (LENGTH tys = 1);
t <- translate_type nm_map arg_map (HD tys);
return $ M t;
od
else if s = "Array" then do assert (LENGTH tys = 1);
t <- translate_type nm_map arg_map (HD tys);
return $ Array t;
Expand Down

0 comments on commit 583e2ea

Please sign in to comment.