jon.recoil.org

Module Modality.Const

type t

A modality that acts on Value axes. Conceptually it is a record where individual fields can be set or proj.

The identity modality.

val is_id : Mode.Modality.Const.t -> bool

Test if the given modality is the identity modality.

val apply : Mode.Modality.Const.t -> ('l * 'r) Mode.Value.t -> ('l * 'r) Mode.Value.t

Apply a modality on mode.

concat ~then t returns the modality that is then_ after t.

set a t overwrites an axis of t to be a.

proj ax t projects out the axis ax of t.

diff t0 t1 returns a list of atoms in t1 that are different than t0.

equate t0 t1 checks that t0 = t1. Definition: t0 = t1 iff t0 <= t1 and t1 <= t0.

Printing for debugging.