diff options
author | Emilio Jesus Gallego Arias <e+git@x80.org> | 2018-04-02 04:26:09 +0200 |
---|---|---|
committer | Emilio Jesus Gallego Arias <e+git@x80.org> | 2018-04-06 02:59:34 +0200 |
commit | 79ff2bc044aa86a5ce30f0c24647db8c8e2544fa (patch) | |
tree | ab262754c02841288ce18020bb03b28974f4858a /vernac/vernacentries.ml | |
parent | b7938d0a51cdef8076bf5e1a58907b845a3fcc3d (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/vernacentries.ml')
-rw-r--r-- | vernac/vernacentries.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vernac/vernacentries.ml b/vernac/vernacentries.ml index b44c7cccb..11e9dc16c 100644 --- a/vernac/vernacentries.ml +++ b/vernac/vernacentries.ml @@ -672,7 +672,7 @@ let vernac_declare_module export {loc;v=id} binders_ast mty_ast = else (idl,ty)) binders_ast in let mp = Declaremods.declare_module Modintern.interp_module_ast - id binders_ast (Enforce mty_ast) [] + id binders_ast (Declaremods.Enforce mty_ast) [] in Dumpglob.dump_moddef ?loc mp "mod"; Flags.if_verbose Feedback.msg_info (str "Module " ++ Id.print id ++ str " is declared"); |