package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type source = in_channel

Source of characters

val parse : source -> 'a t -> ('a, error) result

Parse the given source using the parser, and returns the parsed value.

val parse' : source -> 'a t -> ('a, string) result

Same as parse, but returns a user-friendly string in case of failure

val parse_exn : source -> 'a t -> 'a

Unsafe version of parse.

  • raises Error

    if parsing fails

OCaml

Innovation. Community. Security.