package ppx_meta_conv

  1. Overview
  2. Docs
Ppx based type_conv for various tree data formats

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_meta_conv-4.0.1.tar.bz2
sha256=0e9945064e1057e9dccf586434a399fba4251812d14fc51050b2cc5e76a47c2b
md5=536ea6b606a1217feccffac4609b5ece

doc/ppx_meta_conv.runtime/Meta_conv/Error/LocalException/index.html

Module Error.LocalException

LocalException functor to have exception with target type

Typical usage: avoid Result monad bind chain, using local an exception.

let f decoder = let module E = LocalException(struct type t = target) in E.catch begin ... E.exn decoder ... ... end

Parameters

module A : sig ... end

Signature

exception Exception of A.t t
val exn : ('a -> ('b, A.t t) result) -> 'a -> 'b
val catch : ('a -> 'b) -> 'a -> ('b, A.t t) result
OCaml

Innovation. Community. Security.