package pattern

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type pattern = Ppxlib.pattern
and expression = Ppxlib.expression
and mismatch = {
  1. ident : string;
  2. expected : pattern;
  3. got : expression option;
}
and failure = {
  1. common : pattern;
  2. mismatches : mismatch list;
}
and 'a pattern_result = ('a, failure) result
val show_pattern : pattern -> Ppx_deriving_runtime.string
val show_expression : expression -> Ppx_deriving_runtime.string
val show_mismatch : mismatch -> Ppx_deriving_runtime.string
val show_failure : failure -> Ppx_deriving_runtime.string
type ('a, 'b) matcher = ?quoted:Ppxlib.expression -> 'a -> 'b pattern_result
val check : ('a -> Ppxlib.expression) -> 'a -> ('a, 'b) matcher -> 'b pattern_result
val format_failure : Format.formatter -> failure -> unit
val elim_type_constraints : Ppxlib.expression -> Ppxlib.expression
OCaml

Innovation. Community. Security.