Require dune lang 1.2 for transitioning wraps

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
Rudi Grinberg 2018-08-31 17:58:58 +03:00
parent 18abaa7def
commit 3c89b6c131
1 changed files with 3 additions and 1 deletions

View File

@ -868,7 +868,9 @@ module Library = struct
sum
[ "true", return (Simple true)
; "false", return (Simple false)
; "transition", string >>| fun x -> Yes_with_transition x
; "transition",
Syntax.since Stanza.syntax (1, 2) >>= fun () ->
string >>| fun x -> Yes_with_transition x
]
let field = field "wrapped" ~default:(Simple true) dparse