sealed abstract class FreeT[S[_], M[_], A] extends AnyRef
- Source
- FreeT.scala
- Alphabetic
- By Inheritance
- FreeT
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def flatMap[B](f: (A) => FreeT[S, M, B]): FreeT[S, M, B]
Binds the given continuation to the result of this computation.
- def foldMap(f: ~>[S, M])(implicit M0: BindRec[M], M1: Applicative[M]): M[A]
Runs to completion, mapping the suspension with the given transformation at each step and accumulating into the monad
M
. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hoist[N[_]](mn: ~>[M, N]): FreeT[S, N, A]
Changes the underlying
Monad
for thisFreeT
, ie.Changes the underlying
Monad
for thisFreeT
, ie. turning thisFreeT[S, M, A]
into aFreeT[S, N, A]
. - def interpret[T[_]](st: ~>[S, T])(implicit M: Functor[M]): FreeT[T, M, A]
Change the base functor
S
for aFreeT
action. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def map[B](f: (A) => B)(implicit M: Applicative[M]): FreeT[S, M, B]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def resume(implicit S: Functor[S], M0: BindRec[M], M1: Applicative[M]): M[\/[S[FreeT[S, M, A]], A]]
Evaluates a single layer of the free monad *
- def resumeC(implicit M0: BindRec[M], M1: Applicative[M]): M[\/[Coyoneda[S, FreeT[S, M, A]], A]]
- def runM(interp: (S[FreeT[S, M, A]]) => M[FreeT[S, M, A]])(implicit S: Functor[S], M0: BindRec[M], M1: Applicative[M]): M[A]
Runs to completion, using a function that maps the resumption from
S
to a monadM
. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()