package dolmen_type

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

A module for constant symbols the occur in types.

type t

The type of constant symbols the can occur in types

val compare : t -> t -> int

Comparison function on type constants.

val print : Format.formatter -> t -> unit

Printing function.

val arity : t -> int

Return the arity of the given symbol.

val mk : Dolmen.Std.Path.t -> int -> t

Create a type constant with the given arity.

val set_tag : t -> 'a Tag.t -> 'a -> unit

Set the value bound to a tag.

val add_tag : t -> 'a list Tag.t -> 'a -> unit

Add a value to the list of values bound to a tag.