sttp.monad
package sttp.monad
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object EitherMonad extends MonadError[[_] =>> Either[Throwable, _$8]]
Attributes
- Supertypes
- Self type
-
EitherMonad.type
class FutureMonad(implicit ec: ExecutionContext) extends MonadAsyncError[Future]
Attributes
- Supertypes
trait MonadAsyncError[F[_]] extends MonadError[F]
Attributes
- Supertypes
- Known subtypes
-
class FutureMonad
A basic monad interface, allowing abstract manipulation of effectful values, represented using the type constructor F
.
A basic monad interface, allowing abstract manipulation of effectful values, represented using the type constructor F
.
A computation yielding results of type T
is represented as a value of type F[T]
. Such values: * can be transformed using map
* can be run in sequence using flatMap
* errors can be handled using handleError
* and new computations can be created using unit
, eval
and suspend
To use convenient .map
, .flatMap
syntax, make sure an implicit instance of MonadError
is in scope, and import: import sttp.monad.syntax._
. This adds the appropriate extension methods.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
object MonadError
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MonadError.type
object TryMonad extends MonadError[Try]
Attributes
- Supertypes
- Self type
-
TryMonad.type
In this article