arbiter-core-0.1.0.0
arbiter-core
Safe HaskellNone
LanguageGHC2024

Arbiter.Core.Json

Description

Internal to the arbiter packages. Not covered by the PVP.

Shared Aeson helpers. Patch decoders are triple-state. An omitted field leaves the value unchanged. An explicit null clears the override.

Synopsis

Documentation

patchOptions :: OptionsSource #

Generic options that omit Nothing fields. An unchanged field is absent. A cleared override is null.

decodeOrEmpty :: (FromJSON a, Monoid a) => Value -> aSource #

Decode a value, or mempty when it has another shape.