package dolmen

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

Module Ty.VarSource

A module for variables that occur in types.

Sourcetype t = ty_var

The type of variables the can occur in types

Sourceval hash : t -> int

A hash function for type variables, should be suitable to create hashtables.

Sourceval equal : t -> t -> bool

An equality function on type variables. Should be compatible with the hash function.

Sourceval compare : t -> t -> int

Comparison function on variables.

Sourceval mk : string -> t

Create a new type variable with the given name.

Sourceval tag : t -> 'a tag -> 'a -> unit

Tag a variable.

Sourceval get_tag : t -> 'a tag -> 'a list

Return the list of value associated to the tag.

Sourceval get_tag_last : t -> 'a tag -> 'a option

Return the last value associated to the tag (if any).

OCaml

Innovation. Community. Security.