package ostap

  1. Overview
  2. Docs
type ('a, 'b) tag =
  1. | Parsed of 'a * 'b option
  2. | Failed of 'b option
  3. | Empty
type ('stream, 'b, 'c) result = ('b * 'stream, 'c) tag
exception Retry
val emptyResult : ('a, 'b) tag
val failWith : 'a -> ('b, 'c) tag
module K : sig ... end
type ('a, 'stream, 'b, 'c) k = ('a, 'stream, 'b, 'c) K.t
type ('a, 'stream, 'b, 'c) parser = 'stream -> ('a, 'stream, 'b, 'c) k -> ('stream, 'b, 'c) result
type ('a, 'stream, 'b, 'c) parser' = ('a, 'stream, 'b, 'c) k -> ('stream, 'b, 'c) result
val bind : (('a -> 'b -> ('c * 'd, 'e) tag) -> 'f) -> ('g -> 'h -> ('i * 'j, 'k) tag) -> ('l -> [< `Fail of 'm | `Ok of 'n ]) -> 'o
OCaml

Innovation. Community. Security.