Skip to content

Commit

Permalink
[coq] Check version for Coq's (theories ...) field.
Browse files Browse the repository at this point in the history
Users willing to use this indeed need to bump their `dune-project`
version.

Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
  • Loading branch information
ejgallego committed Mar 19, 2020
1 parent 839398f commit d087d3f
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 9 deletions.
6 changes: 5 additions & 1 deletion src/dune/dune_file.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,11 @@ module Coq = struct
and+ modules = modules_field "modules"
and+ libraries =
field "libraries" (repeat (located Lib_name.decode)) ~default:[]
and+ theories = field "theories" (repeat Coq_lib_name.decode) ~default:[]
and+ theories =
field "theories"
( Dune_lang.Syntax.since Stanza.syntax (2, 5)
>>> repeat Coq_lib_name.decode )
~default:[]
and+ enabled_if = enabled_if ~since:None in
let package = select_deprecation ~package ~public in
{ name
Expand Down
2 changes: 1 addition & 1 deletion src/dune/stanza.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Parser = struct
type nonrec t = string * t list Dune_lang.Decoder.t
end

let latest_version = (2, 4)
let latest_version = (2, 5)

let syntax =
Dune_lang.Syntax.create ~name:"dune" ~desc:"the dune language"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(lang dune 2.4)
(lang dune 2.5)

(using coq 0.1)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(lang dune 2.4)
(lang dune 2.5)

(using coq 0.1)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(lang dune 2.4)
(lang dune 2.5)

(using coq 0.1)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(lang dune 2.4)
(lang dune 2.5)

(using coq 0.1)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(lang dune 2.4)
(lang dune 2.5)

(using coq 0.1)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(lang dune 2.4)
(lang dune 2.5)

(using coq 0.1)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(lang dune 2.4)
(lang dune 2.5)

(using coq 0.1)

0 comments on commit d087d3f

Please sign in to comment.