conftrack-0.0.1: Tracable multi-source config management
Safe HaskellSafe-Inferred
LanguageGHC2021

Conftrack.Source.Aeson

Description

Functions for producing sources reading from json strings or files, using the aeson library.

Synopsis

Documentation

mkJsonSource :: Value -> SomeSource Source #

Make a source from an aeson value

mkJsonSourceWith :: Text -> Value -> SomeSource Source #

same as mkJsonSource, but with an additional description to be shown in output of printConfigOrigins.

mkJsonFileSource :: OsPath -> IO (Maybe SomeSource) Source #

Make a source from a json file.