package oxbow

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Oxbow_core.Json_slotsSource

Sourceval empty : (Yojson.Safe.t -> 'a) -> 'a

empty t_of is the record with every slot absent.

Sourceval is_empty : ('a -> Yojson.Safe.t) -> 'a -> bool

is_empty yojson_of v is true when every slot of v is absent.

Sourceval merge : ('a -> Yojson.Safe.t) -> (Yojson.Safe.t -> 'a) -> old:'a -> new_:'a -> 'a

merge yojson_of t_of ~old ~new_ keeps each slot of old where new_ holds no value.