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
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
.
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.
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 objects of a given type from
ConfigValues
.the type of objects readable by this
ConfigReader