package ppx_meta_conv

  1. Overview
  2. Docs
PPX for converting between OCaml values and JSON, Sexp and camlon

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_meta_conv-4.1.0.tar.gz
md5=aad544375f23a3979aafe9defdebf4bd
sha512=991ad7433c8f2f51b298d4c99b35b873aab66c5d1da1beaa18f8f58f8e708e5a4299f0bb657af9d12bfcd3d645f48b3efe21e13b8c62e303604bd374e88f7d3a

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

Module Error.LocalExceptionSource

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

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

Innovation. Community. Security.