package asai

  1. Overview
  2. Docs
type t

The abstract type of highlighting styles.

val default : t

default is the default style, meaning no highlighting is applied. It should be the unit of compose.

val equal : t -> t -> bool

Comparing whether two styles are equivalent.

val compare : t -> t -> int

Comparing styles for the importance they represent.

val max : t -> t -> t

max s1 s2 gives the style that signals more importance.

val is_default : t -> bool

is_default s checks if the style is the default style. It should be equivalent to equal default s.

val compose : t -> t -> t

Compose two styles into one. The operator should form a commutative group with default being its unit.

val dump : Stdlib.Format.formatter -> t -> unit

Ugly printer for debugging

OCaml

Innovation. Community. Security.