ResultCompanion
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 as fromTry
or sequence
on DecodeResult
's companion object, which can be achieved by extending kantan.codecs.ResultCompanion.WithDefault.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ResultCompanion.type
Members list
Type members
Classlikes
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.
Attributes
- Supertypes
- Known subtypes
-
object ResourceResulttrait WithDefault[F]class WithError[F]object OpenResultobject ProcessResultobject StringResultShow all
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.
Attributes
- Supertypes
- Known subtypes
Similar to WithDefault, but uses IsError to deal with error cases.
Similar to WithDefault, but uses IsError to deal with error cases.
Attributes
- Supertypes
-
trait WithDefault[F]trait Simple[F]trait Simple[F]class Objecttrait Matchableclass AnyShow all
- Known subtypes