package dolmen

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t = 'a id

The type of identifiers

val hash : 'a t -> int

Hash function.

val equal : 'a t -> 'b t -> bool

Equality function.

val compare : 'a t -> 'b t -> int

Comparison function.

val print : Stdlib.Format.formatter -> 'a t -> unit

Printing function

val tag : 'a t -> 'b Tag.t -> 'b -> unit

Add a tag to an identifier

val get_tag : 'a t -> 'b Tag.t -> 'b list

Get all the tags added to the identifier

val get_tag_last : 'a t -> 'b Tag.t -> 'b option

Get the last tag added to the identifier

val mk : ?builtin:builtin -> ?tags:Tag.map -> string -> 'a -> 'a t

Create a new fresh identifier

val const : ?pos:Pretty.pos -> ?name:string -> ?builtin:builtin -> ?tags:Tag.map -> ?ty_filters:Filter.ty_filter list -> ?term_filters:Filter.term_filter list -> string -> 'a t list -> 'b list -> 'b -> ('a, 'b) function_type t

Create a new function or type constructor identifier

OCaml

Innovation. Community. Security.