package tezos-lwt-result-stdlib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Unit end

The unit type

type t = unit =
  1. | ()

The unit type.

The constructor () is included here so that it has a path, but it is not intended to be used in user-defined data types.

val equal : t -> t -> bool

equal u1 u2 is true.

val compare : t -> t -> int

compare u1 u2 is 0.

val to_string : t -> string

to_string b is "()".

val unit : t
val unit_s : unit Lwt.t
val unit_e : (unit, 'a) result
val unit_es : (unit, 'a) result Lwt.t
val catch : ?catch_only:(exn -> bool) -> (t -> t) -> t
val catch_f : ?catch_only:(exn -> bool) -> (t -> t) -> (exn -> t) -> t
val catch_s : ?catch_only:(exn -> bool) -> (unit -> unit Lwt.t) -> unit Lwt.t
OCaml

Innovation. Community. Security.