package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t
type 'a io = 'a t
type 'a with_finalizer
type !'a or_error = [
  1. | `Error of string
  2. | `Ok of 'a
]
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val return : 'a -> 'a t
val repeat : int -> 'a t -> 'a list t
val repeat' : int -> 'a t -> unit t
val map : ('a -> 'b) -> 'a t -> 'b t
val (>|=) : 'a t -> ('a -> 'b) -> 'b t
val bind : ?finalize:unit t -> ('a -> 'b t) -> 'a t -> 'b t
val pure : 'a -> 'a t
val (<*>) : ('a -> 'b) t -> 'a t -> 'b t
val lift : ('a -> 'b) -> 'a t -> 'b t
val lift2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t
val lift3 : ('a -> 'b -> 'c -> 'd) -> 'a t -> 'b t -> 'c t -> 'd t
val sequence : 'a t list -> 'a list t
val sequence_map : ('a -> 'b t) -> 'a list -> 'b list t
val fail : string -> 'a t
val (>>>=) : 'a with_finalizer -> ('a -> 'b t) -> 'b t
val run : 'a t -> 'a or_error
exception IO_error of string
val run_exn : 'a t -> 'a
val register_printer : (exn -> string option) -> unit
val with_in : ?mode:int -> ?flags:Pervasives.open_flag list -> string -> Pervasives.in_channel with_finalizer
val read : Pervasives.in_channel -> string -> int -> int -> int t
val read_line : Pervasives.in_channel -> string option t
val read_lines : Pervasives.in_channel -> string list t
val read_all : Pervasives.in_channel -> string t
val with_out : ?mode:int -> ?flags:Pervasives.open_flag list -> string -> Pervasives.out_channel with_finalizer
val with_out_a : ?mode:int -> ?flags:Pervasives.open_flag list -> string -> Pervasives.out_channel with_finalizer
val write : Pervasives.out_channel -> string -> int -> int -> unit t
val write_str : Pervasives.out_channel -> string -> unit t
val write_buf : Pervasives.out_channel -> Buffer.t -> unit t
val write_line : Pervasives.out_channel -> string -> unit t
val flush : Pervasives.out_channel -> unit t
module Seq : sig ... end
module File : sig ... end
module Raw : sig ... end
OCaml

Innovation. Community. Security.