package catala

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Variables and their collections

This module provides types and helpers for Bindlib variables on the gexpr type

type 'e t = ('a, 't) Shared_ast__.Definitions.naked_gexpr Bindlib.var constraint 'e = (('a Shared_ast__.Definitions.any, 't) Shared_ast__.Definitions.naked_gexpr, 't) Catala_utils.Marked.t
type 'e vars = ('a, 't) Shared_ast__.Definitions.naked_gexpr Bindlib.mvar constraint 'e = (('a Shared_ast__.Definitions.any, 't) Shared_ast__.Definitions.naked_gexpr, 't) Catala_utils.Marked.t
val make : string -> 'e t
val compare : 'e t -> 'e t -> int
val eq : 'e t -> 'e t -> bool
val translate : 'e1 t -> 'e2 t

Needed when converting from one AST type to another. See the note of caution on Bindlib.copy_var.

type 'e var = 'e t

Alias to allow referring to the type in the submodules

module Set : sig ... end

Wrapper over Set.S but with a type variable for the AST type parameters. Extend as needed

module Map : sig ... end

Wrapper over Map.S but with a type variable for the AST type parameters. Extend as needed

OCaml

Innovation. Community. Security.