Skip to content

Commit 9332898

Browse files
committed
Coq: allow use of the concurrency interface without an exception type
1 parent ff355c8 commit 9332898

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/sail_coq_backend/pretty_print_coq.ml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3559,10 +3559,11 @@ let pp_ast_coq (types_file, types_modules) (defs_file, defs_modules) type_defs_m
35593559
else
35603560
[
35613561
empty;
3562-
string "Definition M a := Defs.monad a exception.";
3563-
string "Definition MR a r := Defs.monad a (r + exception)%type.";
3564-
string "Definition returnM {A:Type} : A -> M A := Defs.returnm (E := exception).";
3565-
string "Definition returnR {A:Type} (R:Type) : A -> MR A R := Defs.returnm (E := R + exception)%type.";
3562+
string ("Definition M a := Defs.monad a " ^ exc_typ ^ ".");
3563+
string ("Definition MR a r := Defs.monad a (r + " ^ exc_typ ^ ")%type.");
3564+
string ("Definition returnM {A:Type} : A -> M A := Defs.returnm (E := " ^ exc_typ ^ ").");
3565+
string
3566+
("Definition returnR {A:Type} (R:Type) : A -> MR A R := Defs.returnm (E := R + " ^ exc_typ ^ ")%type.");
35663567
]
35673568
in
35683569
separate hardline

0 commit comments

Comments
 (0)