package preface

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

Built-in exception used along Preface.

Types

type t = exn

Alias of exn as Exn.t.

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) result

Check if a position is positive.

val equal : t -> t -> bool

Equality between Exn.t.

val pp : Format.formatter -> t -> unit

Formatter for pretty-printing for Exn.t.

OCaml

Innovation. Community. Security.