| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | module Arg = |
| 12 | struct |
| 13 | module DYN = Dyn.Make() |
| 14 | module Map = DYN.Map |
| 15 | type ('a, 'b) tag = ('a * 'b) DYN.tag |
| 16 | let eq = DYN.eq |
| 17 | let repr = DYN.repr |
| 18 | let create = DYN.create |
| 19 | type glb = Glb : (_,'a) tag * 'a -> glb |
| 20 | end |
| 21 | |
| 22 | module type Param = sig type ('raw, 'glb) t end |
| 23 | |
| 24 | module ArgMap (M : Param) = |
| 25 | struct |
| 26 | type _ pack = Pack : ('raw, 'glb) M.t -> ('raw * 'glb) pack |
| 27 | include Arg.Map(struct type 'a t = 'a pack end) |
| 28 | end |
| 29 | |
| 30 | module Val = Dyn.Make() |