package core_unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type error = [
  1. | Exit.error
  2. | `Signal of Core.Signal.t
]
val compare_error : error -> error -> int
val sexp_of_error : error -> Sexplib0.Sexp.t
val error_of_sexp : Sexplib0.Sexp.t -> error
val __error_of_sexp__ : Sexplib0.Sexp.t -> error
type t = (unit, error) Core.Result.t
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t -> t -> int
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val of_unix : UnixLabels.process_status -> t

of_unix assumes that any signal numbers in the incoming value are OCaml internal signal numbers.

val to_string_hum : t -> string
val or_error : t -> unit Core.Or_error.t