Convert the configuration given by a cursor into an instance of A
if possible.
Convert the configuration given by a cursor into an instance of A
if possible.
The cursor from which the config should be loaded
either a list of failures or an object of type A
Converts a type A
to a ConfigValue
.
Converts a type A
to a ConfigValue
.
The instance of A
to convert
The ConfigValue
obtained from the A
instance
Applies a function to values before passing them to this writer.
Applies a function to values before passing them to this writer.
the input type of the function
the function to apply to input values
a ConfigWriter
that writes the results of this writer when the input values are mapped using f
.
Applies a function to configs before passing them to this reader.
Applies a function to configs before passing them to this reader.
the function to apply to input configs
a ConfigReader
returning the results of this reader when the input configs are mapped using f
.
Applies a function to config cursors before passing them to this reader.
Applies a function to config cursors before passing them to this reader.
the function to apply to input config cursors
a ConfigReader
returning the results of this reader when the input cursors are mapped using f
.
Maps a function that can possibly fail over the results of this reader.
Maps a function that can possibly fail over the results of this reader.
the value read by the function in case of success
the function to map over this reader
a ConfigReader
returning the results of this reader mapped by f
, with the resulting Either
flattened
as a success or failure.
Monadically bind a function over the results of this reader.
Monadically bind a function over the results of this reader.
the type of the objects readable by the resulting ConfigReader
the function to bind over this reader
a ConfigReader
returning the results of this reader bound by f
.
Convert the given configuration into an instance of A
if possible.
Convert the given configuration into an instance of A
if possible.
The configuration from which the config should be loaded
either a list of failures or an object of type A
Maps a function over the results of this reader.
Maps a function over the results of this reader.
the output type of the function
the function to map over this reader
a ConfigReader
returning the results of this reader mapped by f
.
Maps a function over the results of this writer.
Maps a function over the results of this writer.
the function to map over this writer
a ConfigWriter
returning the results of this writer mapped by f
.
Combines this reader with another, returning the result of the first one that succeeds.
Combines this reader with another, returning the result of the first one that succeeds.
the type of the objects readable by both readers
the reader to combine with this one
a ConfigReader
returning the results of this reader if it succeeds and the results of reader
otherwise.
Transforms the values read and written by this ConfigConvert
using two functions.
Transforms the values read and written by this ConfigConvert
using two functions.
the type of the returned ConfigConvert
the function applied to values after they are read
the function applied to values before they are written
a ConfigConvert
that reads and writes values of type B
by applying f
and g
on read and write,
respectively.
Combines this reader with another, returning both results as a pair.
Combines this reader with another, returning both results as a pair.
the type of the objects readable by the provided reader
the reader to combine with this one
a ConfigReader
returning the results of both readers as a pair.
Trait for objects capable of reading and writing objects of a given type from and to
ConfigValues
.