Types
Exceptions
Built-in exceptions.
exception Negative_position of int
Occurs when an integer should be positive.
Additional functions
Additional functions to facilitate practical work with Exn.t
.
val check_position : int -> (int, t) Stdlib.result
Check if a position is positive.
val equal : t -> t -> bool
val pp : Stdlib.Format.formatter -> t -> unit
Formatter for pretty-printing for Exn.t
.