aboutsummaryrefslogtreecommitdiff
path: root/parsing
diff options
context:
space:
mode:
authorHugo Herbelin2016-12-05 11:36:12 +0100
committerHugo Herbelin2017-03-23 22:13:56 +0100
commit8f5d447769a41cd251701272a6ff71a7a20de658 (patch)
tree8146cf9cdfc399f43e2ecd9bd9df49dfae49b635 /parsing
parent80d36bc6538b7feaab3dfa43f6e234ae85b55692 (diff)
Improving the API of constrexpr_ops.mli.
Deprecating abstract_constr_expr in favor of mkCLambdaN, prod_constr_expr in favor of mkCProdN. Note: They did not do exactly the same, the first ones were interpreting "(x y z:_)" as "(x:_) (y:_) (z:_)" while the second ones were preserving the original sharing of the type, what I think is the correct thing to do. So, there is also a "fix" of semantic here.
Diffstat (limited to 'parsing')
-rw-r--r--parsing/g_constr.ml42
1 files changed, 1 insertions, 1 deletions
diff --git a/parsing/g_constr.ml4 b/parsing/g_constr.ml4
index 47455f9842..7316a4335a 100644
--- a/parsing/g_constr.ml4
+++ b/parsing/g_constr.ml4
@@ -231,7 +231,7 @@ GEXTEND Gram
record_field_declaration:
[ [ id = global; params = LIST0 identref; ":="; c = lconstr ->
- (id, abstract_constr_expr c (binders_of_lidents params)) ] ]
+ (id, mkCLambdaN (!@loc) (binders_of_lidents params) c) ] ]
;
binder_constr:
[ [ "forall"; bl = open_binders; ","; c = operconstr LEVEL "200" ->