package elpi
Module Elpi.BuiltinSource
Source
val ocaml_map :
name:string ->
'a API.Conversion.t ->
(module API.Utils.Map.S with type key = 'a) ->
API.BuiltIn.declaration listEasy export of OCaml's Map/Set modules, use as follows: module StrMap = API.Utils.Map.Make(String) ocaml_map ~name:"strmap" BuiltInData.string (module StrMap)
Source
val ocaml_set :
name:string ->
'a API.Conversion.t ->
(module API.Utils.Set.S with type elt = 'a and type t = 'b) ->
API.BuiltIn.declaration listSource
val ocaml_set_conv :
name:string ->
'a API.Conversion.t ->
(module API.Utils.Set.S with type elt = 'a and type t = 'b) ->
'b API.Conversion.t * API.BuiltIn.declaration listSource
val unspecC :
('a, 'b, 'c) API.ContextualConversion.t ->
('a unspec, 'b, 'c) API.ContextualConversion.t