aboutsummaryrefslogtreecommitdiff
path: root/plugins/funind
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-06-06 09:20:20 +0200
committerGaëtan Gilbert2019-06-11 09:58:12 +0200
commit49cedcb231548f50226331e729ed2734d61501c8 (patch)
tree79546fcf35c119c9e15c925ca1653fdd73de2c37 /plugins/funind
parent45306c6c9c433b86406d041f58aafb7cf3a3ff82 (diff)
STM: encode in static types that vernac_when is only used when VtSideff
The stm.ml changes show that for the other classifications either the vernac_when was ignored, or there was an assert on it forcing it to be Now or Later depending on the vernac_type. One may also note that the classification used in top_printers `VtQuery,VtNow` would have failed those asserts...
Diffstat (limited to 'plugins/funind')
-rw-r--r--plugins/funind/g_indfun.mlg10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/funind/g_indfun.mlg b/plugins/funind/g_indfun.mlg
index 833ff9f1ed..c217ed8b1d 100644
--- a/plugins/funind/g_indfun.mlg
+++ b/plugins/funind/g_indfun.mlg
@@ -186,14 +186,14 @@ let classify_as_Fixpoint recsl =
let classify_funind recsl =
match classify_as_Fixpoint recsl with
- | Vernacextend.VtSideff ids, _
+ | Vernacextend.VtSideff (ids, _)
when is_proof_termination_interactively_checked recsl ->
- Vernacextend.(VtStartProof (GuaranteesOpacity, ids), VtLater)
+ Vernacextend.(VtStartProof (GuaranteesOpacity, ids))
| x -> x
let is_interactive recsl =
match classify_funind recsl with
- | Vernacextend.VtStartProof _, _ -> true
+ | Vernacextend.VtStartProof _ -> true
| _ -> false
}
@@ -243,7 +243,7 @@ let warning_error names e =
VERNAC COMMAND EXTEND NewFunctionalScheme
| ["Functional" "Scheme" ne_fun_scheme_arg_list_sep(fas,"with") ]
- => { Vernacextend.(VtSideff(List.map pi1 fas), VtLater) }
+ => { Vernacextend.(VtSideff(List.map pi1 fas, VtLater)) }
->
{ begin
try
@@ -275,7 +275,7 @@ END
VERNAC COMMAND EXTEND NewFunctionalCase
| ["Functional" "Case" fun_scheme_arg(fas) ]
- => { Vernacextend.(VtSideff[pi1 fas], VtLater) }
+ => { Vernacextend.(VtSideff([pi1 fas], VtLater)) }
-> { Functional_principles_types.build_case_scheme fas }
END