summaryrefslogtreecommitdiff
path: root/src/util.mli
diff options
context:
space:
mode:
authorThomas Bauereiss2017-12-05 17:05:22 +0000
committerThomas Bauereiss2017-12-06 14:54:28 +0000
commitc3c3c40a1d4f81448d8356317e88be2b04363df7 (patch)
tree4caeea3f28af968a59241df7a7ebd1828fd61086 /src/util.mli
parent4a7d6e6d7e9221a19bc50c627b5714e45b1748bc (diff)
Make AST after rewriting for Lem backend type-checkable
- Add support for some internal nodes to type checker - Add more explicit type annotations during rewriting - Remove hardcoded rewrites for E_vector_update etc from Lem pretty-printer; these will be resolved by the type checker during rewriting now
Diffstat (limited to 'src/util.mli')
-rw-r--r--src/util.mli2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.mli b/src/util.mli
index 38af1fc2..ac87cab8 100644
--- a/src/util.mli
+++ b/src/util.mli
@@ -84,7 +84,7 @@ val option_default : 'a -> 'a option -> 'a
(** [option_binop f (Some x) (Some y)] returns [Some (f x y)],
and in all other cases, [option_binop] returns [None]. *)
-val option_binop : ('a -> 'a -> 'a) -> 'a option -> 'a option -> 'a option
+val option_binop : ('a -> 'a -> 'b) -> 'a option -> 'a option -> 'b option
(** [option_get_exn exn None] throws the exception [exn],
whereas [option_get_exn exn (Some x)] returns [x]. *)