package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type ('input, 'result) t
val stop : ('a, unit) t
val return : 'b -> ('a, 'b) t
val return' : (unit -> 'b) -> ('a, 'b) t
val delay : (unit -> ('a, 'b) t) -> ('a, 'b) t
val fail : ('a, 'b) t
val one : ('a, 'a) t
val skip : ('a, unit) t
val exact : ?eq:('a -> 'a -> bool) -> 'a -> ('a, unit) t
val guard : ('b -> bool) -> ('a, 'b) t -> ('a, 'b) t
val bind : ('b -> ('a, 'c) t) -> ('a, 'b) t -> ('a, 'c) t
val (>>=) : ('a, 'b) t -> ('b -> ('a, 'c) t) -> ('a, 'c) t
val (>>) : ('a, 'b) t -> ('a, 'c) t -> ('a, 'c) t
val map : ('b -> 'c) -> ('a, 'b) t -> ('a, 'c) t
val (>>|) : ('a, 'b) t -> ('b -> 'c) -> ('a, 'c) t
val (<|>) : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t
val pair : ('a, 'b) t -> ('a, 'c) t -> ('a, 'b * 'c) t
val triple : ('a, 'b) t -> ('a, 'c) t -> ('a, 'd) t -> ('a, 'b * 'c * 'd) t
val if_then_else : ('a -> bool) -> ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t
val take_while : ('a -> bool) -> ('a, 'a list) t
val take_n : int -> ('a, 'a list) t
val skip_spaces : (char, unit) t
val ident : (char, string) t
val many : sep:('a, 'c) t -> ('a, 'b) t -> ('a, 'b list) t
val many1 : sep:('a, 'c) t -> ('a, 'b) t -> ('a, 'b list) t
type !'a sequence = ('a -> unit) -> unit
val run : ('a, 'b) t -> 'a sequence -> 'b list
OCaml

Innovation. Community. Security.