Provides companion object methods for result types that do not have a sane default error type.
Provides companion object methods for result types that do not have a sane default error type.
If your specialised result type has a sane default (such as TypeError
for DecodeResult
in kantan.csv), use
WithDefault instead.
Provides companion object methods for result types that have a sane default error type.
Provides companion object methods for result types that have a sane default error type.
This default error type is materialised by fromThrowable.
Similar to WithDefault, but uses IsError to deal with error cases.
Provides trait that result companion object can extend.
The idea is that libraries that rely on kantan.codecs are likely to provide type-constrained versions of result, such as
DecodeResult
in kantan.csv. Users are likely to expect goodies such asfromTry
orsequence
onDecodeResult
's companion object, which can be achieved by extending kantan.codecs.ResultCompanion.WithDefault.