aboutsummaryrefslogtreecommitdiffhomepage
path: root/vernac/classes.ml
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2018-04-02 04:26:09 +0200
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2018-04-06 02:59:34 +0200
commit79ff2bc044aa86a5ce30f0c24647db8c8e2544fa (patch)
treeab262754c02841288ce18020bb03b28974f4858a /vernac/classes.ml
parentb7938d0a51cdef8076bf5e1a58907b845a3fcc3d (diff)
[api] Remove dependency of library on Vernacexpr.
Morally, `library` should not depend on the vernacular definition. This will also create problems when trying to modularize the codebase due to the cycle [vernacs depend for example on constrexprs]. The fix is fortunately easy.
Diffstat (limited to 'vernac/classes.ml')
-rw-r--r--vernac/classes.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/vernac/classes.ml b/vernac/classes.ml
index 76d427add..ae653974a 100644
--- a/vernac/classes.ml
+++ b/vernac/classes.ml
@@ -425,7 +425,7 @@ let context poly l =
let nstatus = match b with
| None ->
pi3 (ComAssumption.declare_assumption false decl (t, univs) Universes.empty_binders [] impl
- Vernacexpr.NoInline (CAst.make id))
+ Declaremods.NoInline (CAst.make id))
| Some b ->
let decl = (Discharge, poly, Definition) in
let entry = Declare.definition_entry ~univs ~types:t b in