package dolmen_type

  1. Overview
  2. Docs

Module Dolmen_type.DefSource

Definitions

Helpful helpers to handle defined symbols.

Definitions as declarations

Sourcemodule Declare (Type : Tff_intf.S) : sig ... end

Handle definitions as declaring new constants.

Definitions using substitution

Sourcemodule type Subst_arg = sig ... end

Signature for substitution functions over types and terms

Sourcemodule Subst (Type : Tff_intf.S) (T : Subst_arg with type ty := Type.Ty.t and type ty_var := Type.Ty.Var.t and type term := Type.T.t and type term_var := Type.T.Var.t) : sig ... end

Handle definitions by subsituting in the bodies during type-checking.