package ezjsonm-encoding

  1. Overview
  2. Docs

Module Decoding.SyntaxSource

This modules provides a monadic interface to compose existing decoders together.

Sourceval (let*) : 'a t -> ('a -> 'b t) -> 'b t

The bind operator.

Sourceval (let+) : 'a t -> ('a -> 'b) -> 'b t

The map operator.

Sourceval (and+) : 'a t -> 'b t -> ('a * 'b) t
Sourceval return : 'a -> 'a t

return x is the decoder that ignores the input Json value, and always return x.

OCaml

Innovation. Community. Security.