IndexedReaderWriterStateT

object IndexedReaderWriterStateT extends IRWSTInstances with CommonIRWSTConstructors
Companion
class
trait CommonIRWSTConstructors
class IRWSTInstances
class IRWSTInstances1
class IRWSTInstances2
class IRWSTInstances3
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_], E, L, SA, SB, A](runF: (E, SA) => F[(L, SB, A)])(F: Applicative[F]): IndexedReaderWriterStateT[F, E, L, SA, SB, A]

Construct a new computation using the provided function.

Construct a new computation using the provided function.

def applyF[F[_], E, L, SA, SB, A](runF: F[(E, SA) => F[(L, SB, A)]]): IndexedReaderWriterStateT[F, E, L, SA, SB, A]

Like apply, but using a function in a context F.

Like apply, but using a function in a context F.

def modify[F[_], E, L, SA, SB](f: SA => SB)(F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, SA, SB, Unit]

Modify the input state using f.

Modify the input state using f.

def modifyF[F[_], E, L, SA, SB](f: SA => F[SB])(F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, SA, SB, Unit]

Like modify, but using an effectful function.

Like modify, but using an effectful function.

Inherited methods

def ask[F[_], E, L, S](F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, E]

Get the provided environment, without modifying the input state.

Get the provided environment, without modifying the input state.

Inherited from
CommonIRWSTConstructors
def get[F[_], E, L, S](F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, S]

Return the input state without modifying it.

Return the input state without modifying it.

Inherited from
CommonIRWSTConstructors
def inspect[F[_], E, L, S, A](f: S => A)(F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, A]

Inspect a value from the input state, without modifying the state.

Inspect a value from the input state, without modifying the state.

Inherited from
CommonIRWSTConstructors
def inspectAsk[F[_], E, L, S, A](f: (E, S) => A)(`evidence$1`: Applicative[F], `evidence$2`: Monoid[L]): ReaderWriterStateT[F, E, L, S, A]

Inspect values from the environment and input state, without modifying the state.

Inspect values from the environment and input state, without modifying the state.

Inherited from
CommonIRWSTConstructors
def inspectAskF[F[_], E, L, S, A](f: (E, S) => F[A])(`evidence$3`: Applicative[F], `evidence$4`: Monoid[L]): ReaderWriterStateT[F, E, L, S, A]

Like inspectAsk, but using an effectful function.

Like inspectAsk, but using an effectful function.

Inherited from
CommonIRWSTConstructors
def inspectF[F[_], E, L, S, A](f: S => F[A])(F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, A]

Like inspect, but using an effectful function.

Like inspect, but using an effectful function.

Inherited from
CommonIRWSTConstructors
def liftF[F[_], E, L, S, A](fa: F[A])(F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, A]

Return an effectful a and an empty log without modifying the input state.

Return an effectful a and an empty log without modifying the input state.

Inherited from
CommonIRWSTConstructors
def liftK[F[_], E, L, S](F: Applicative[F], L: Monoid[L]): FunctionK[F, [_] =>> IndexedReaderWriterStateT[F, E, L, S, S, _$17]]

Same as liftF, but expressed as a FunctionK for use with mapK

Same as liftF, but expressed as a FunctionK for use with mapK

scala> import cats._, data._, implicits._
scala> val a: OptionT[Eval, Int] = 1.pure[OptionT[Eval, *]]
scala> val b: OptionT[RWST[Eval, Boolean, List[String], String, *], Int] = a.mapK(RWST.liftK)
scala> b.value.runEmpty(true).value
res0: (List[String], String, Option[Int]) = (List(),"",Some(1))
Inherited from
CommonIRWSTConstructors
def pure[F[_], E, L, S, A](a: A)(F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, A]

Return a and an empty log without modifying the input state.

Return a and an empty log without modifying the input state.

Inherited from
CommonIRWSTConstructors
def set[F[_], E, L, S](s: S)(F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, Unit]

Set the state to s.

Set the state to s.

Inherited from
CommonIRWSTConstructors
def setF[F[_], E, L, S](fs: F[S])(F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, Unit]

Like set, but using an effectful S value.

Like set, but using an effectful S value.

Inherited from
CommonIRWSTConstructors
def tell[F[_], E, L, S](l: L)(F: Applicative[F]): IndexedReaderWriterStateT[F, E, L, S, S, Unit]

Add a value to the log, without modifying the input state.

Add a value to the log, without modifying the input state.

Inherited from
CommonIRWSTConstructors
def tellF[F[_], E, L, S](fl: F[L])(F: Applicative[F]): IndexedReaderWriterStateT[F, E, L, S, S, Unit]

Like tell, but using an effectful L value.

Like tell, but using an effectful L value.

Inherited from
CommonIRWSTConstructors

Deprecated and Inherited methods

@deprecated("Use liftF instead", "1.0.0-RC2")
def lift[F[_], E, L, S, A](fa: F[A])(F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, A]
Deprecated
Inherited from
CommonIRWSTConstructors

Implicits

Inherited implicits

implicit def catsDataAlternativeForIRWST[F[_], E, L, S](FM: Monad[F], FA: Alternative[F], L0: Monoid[L]): Alternative[[_] =>> IndexedReaderWriterStateT[F, E, L, S, S, _$82]]
Inherited from
IRWSTInstances2
implicit def catsDataBifunctorForIRWST[F[_], E, L, SA](F0: Functor[F]): Bifunctor[[_, _] =>> IndexedReaderWriterStateT[F, E, L, SA, _$67, _$68]]
Inherited from
IRWSTInstances
implicit def catsDataContravariantForIRWST[F[_], E, L, SB, T](F0: Functor[F]): Contravariant[[_] =>> IndexedReaderWriterStateT[F, E, L, _$70, SB, T]]
Inherited from
IRWSTInstances
implicit def catsDataDeferForIRWST[F[_], E, L, SA, SB](F: Defer[F]): Defer[[_] =>> IndexedReaderWriterStateT[F, E, L, SA, SB, _$74]]
Inherited from
IRWSTInstances
implicit def catsDataFunctorForIRWST[F[_], E, L, SA, SB](F0: Functor[F]): Functor[[_] =>> IndexedReaderWriterStateT[F, E, L, SA, SB, _$86]]
Inherited from
IRWSTInstances3
implicit def catsDataMonadErrorForIRWST[F[_], E, L, S, R](F0: MonadError[F, R], L0: Monoid[L]): MonadError[[_] =>> IndexedReaderWriterStateT[F, E, L, S, S, _$72], R]
Inherited from
IRWSTInstances
implicit def catsDataMonadForRWST[F[_], E, L, S](F0: Monad[F], L0: Monoid[L]): Monad[[_] =>> ReaderWriterStateT[F, E, L, S, _$77]]
Inherited from
IRWSTInstances1
implicit def catsDataProfunctorForIRWST[F[_], E, L, T](F0: Functor[F]): Profunctor[[_, _] =>> IndexedReaderWriterStateT[F, E, L, _$79, _$80, T]]
Inherited from
IRWSTInstances1
implicit def catsDataSemigroupKForIRWST[F[_], E, L, SA, SB](F0: Monad[F], G0: SemigroupK[F]): SemigroupK[[_] =>> IndexedReaderWriterStateT[F, E, L, SA, SB, _$84]]
Inherited from
IRWSTInstances3
implicit def catsDataStrongForIRWST[F[_], E, L, T](F0: Monad[F]): Strong[[_, _] =>> IndexedReaderWriterStateT[F, E, L, _$64, _$65, T]]
Inherited from
IRWSTInstances