object ReaderWriterStateT extends RWSTFunctions
- Source
- package.scala
- Alphabetic
- By Inheritance
- ReaderWriterStateT
- RWSTFunctions
- CommonIRWSTConstructors
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[F[_], E, L, S, A](runF: (E, S) ⇒ F[(L, S, A)])(implicit F: Applicative[F]): ReaderWriterStateT[F, E, L, S, A]
Construct a new computation using the provided function.
Construct a new computation using the provided function.
- Definition Classes
- RWSTFunctions
-
def
applyF[F[_], E, L, S, A](runF: F[(E, S) ⇒ F[(L, S, A)]]): ReaderWriterStateT[F, E, L, S, A]
Like apply, but using a function in a context
F
.Like apply, but using a function in a context
F
.- Definition Classes
- RWSTFunctions
-
def
applyS[F[_], E, L, S, A](f: (S) ⇒ F[(L, S, A)])(implicit arg0: Applicative[F]): IndexedReaderWriterStateT[F, E, L, S, S, A]
Like apply, but using a effectful function from
S
.Like apply, but using a effectful function from
S
.- Definition Classes
- RWSTFunctions
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ask[F[_], E, L, S](implicit 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.
- Definition Classes
- CommonIRWSTConstructors
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
get[F[_], E, L, S](implicit 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.
- Definition Classes
- CommonIRWSTConstructors
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
inspect[F[_], E, L, S, A](f: (S) ⇒ A)(implicit 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.
- Definition Classes
- CommonIRWSTConstructors
-
def
inspectAsk[F[_], E, L, S, A](f: (E, S) ⇒ A)(implicit arg0: Applicative[F], arg1: 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.
- Definition Classes
- CommonIRWSTConstructors
-
def
inspectAskF[F[_], E, L, S, A](f: (E, S) ⇒ F[A])(implicit arg0: Applicative[F], arg1: Monoid[L]): ReaderWriterStateT[F, E, L, S, A]
Like inspectAsk, but using an effectful function.
Like inspectAsk, but using an effectful function.
- Definition Classes
- CommonIRWSTConstructors
-
def
inspectF[F[_], E, L, S, A](f: (S) ⇒ F[A])(implicit 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.
- Definition Classes
- CommonIRWSTConstructors
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
liftF[F[_], E, L, S, A](fa: F[A])(implicit 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.- Definition Classes
- CommonIRWSTConstructors
-
def
liftK[F[_], E, L, S](implicit F: Applicative[F], L: Monoid[L]): ~>[F, [ζ$0$]IndexedReaderWriterStateT[F, E, L, S, S, ζ$0$]]
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))
- Definition Classes
- CommonIRWSTConstructors
-
def
listen[F[_], E, L, S, A](rwst: ReaderWriterStateT[F, E, L, S, A])(implicit F: Functor[F]): ReaderWriterStateT[F, E, L, S, (A, L)]
- Definition Classes
- RWSTFunctions
-
def
modify[F[_], E, L, S](f: (S) ⇒ S)(implicit F: Applicative[F], L: Monoid[L]): ReaderWriterStateT[F, E, L, S, Unit]
Modify the input state using
f
.Modify the input state using
f
.- Definition Classes
- RWSTFunctions
-
def
modifyF[F[_], E, L, S](f: (S) ⇒ F[S])(implicit F: Applicative[F], L: Monoid[L]): ReaderWriterStateT[F, E, L, S, Unit]
Like modify, but using an effectful function.
Like modify, but using an effectful function.
- Definition Classes
- RWSTFunctions
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
pure[F[_], E, L, S, A](a: A)(implicit 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.- Definition Classes
- CommonIRWSTConstructors
-
def
set[F[_], E, L, S](s: S)(implicit F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, Unit]
Set the state to
s
.Set the state to
s
.- Definition Classes
- CommonIRWSTConstructors
-
def
setF[F[_], E, L, S](fs: F[S])(implicit 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.- Definition Classes
- CommonIRWSTConstructors
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tell[F[_], E, L, S](l: L)(implicit 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.
- Definition Classes
- CommonIRWSTConstructors
-
def
tellF[F[_], E, L, S](fl: F[L])(implicit 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.- Definition Classes
- CommonIRWSTConstructors
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
-
def
lift[F[_], E, L, S, A](fa: F[A])(implicit F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, A]
- Definition Classes
- CommonIRWSTConstructors
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.0-RC2) Use liftF instead