package records

  1. Overview
  2. Docs

Module Record.PolidSource

Sourcetype 'a t

The type of identifiers associated to type 'a.

Sourceval fresh : unit -> 'a t

Make a new, fresh identifier. This is the only way to obtain a value of type t.

Sourcetype ('a, 'b) equal =
  1. | Equal : ('a, 'a) equal
  2. | Different : ('a, 'b) equal

Type constraint which is conditioned on identifier equality.

Sourceval equal : 'a t -> 'b t -> ('a, 'b) equal

Equality predicate.

Sourceval to_int : 'a t -> int

Convert an identifier to an integer. The integer is guaranteed to be unique for each call to fresh.

Sourceval is_equal : 'a t -> 'b t -> bool

equal projected to a plain bool.

OCaml

Innovation. Community. Security.