scalaz

Free

object Free extends FreeInstances with FreeFunctions

Source
Free.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Free
  2. FreeFunctions
  3. FreeInstances
  4. SourceInstances
  5. SinkInstances
  6. TrampolineInstances
  7. FreeInstances0
  8. FreeInstances1
  9. FreeInstances2
  10. FreeInstances3
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type FreeC[S[_], A] = Free[[x]Coyoneda[S, x], A]

    A free monad over the free functor generated by S

  2. case class Gosub[S[_], A, B](a: () ⇒ Free[S, A], f: (A) ⇒ Free[S, B]) extends Free[S, B] with Product with Serializable

    Call a subroutine and continue with the given function.

  3. case class Return[S[_], A](a: A) extends Free[S, A] with Product with Serializable

    Return from the computation with the given value.

  4. type Sink[A, B] = Free[[x](⇒ A) ⇒ x, B]

    A computation that accepts values of type A, eventually resulting in a value of type B.

    A computation that accepts values of type A, eventually resulting in a value of type B. Note the similarity to an scalaz.iteratee.Iteratee.

  5. type Source[A, B] = Free[[x](A, x), B]

    A computation that produces values of type A, eventually resulting in a value of type B.

  6. case class Suspend[S[_], A](a: S[Free[S, A]]) extends Free[S, A] with Product with Serializable

    Suspend the computation with the given suspension.

  7. type Trampoline[A] = Free[Function0, A]

    A computation that can be stepped through, suspended, and paused

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def await[A]: Sink[A, A]

    A sink that waits for a single value and returns it.

    A sink that waits for a single value and returns it.

    Definition Classes
    FreeFunctions
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. implicit def freeEqual[F[_], A](implicit A: Equal[A], N: ~>[Equal, [α]Equal[F[α]]], F: Functor[F]): Equal[Free[F, A]]

    Definition Classes
    FreeInstances
  11. implicit def freeFoldable[F[_]](implicit arg0: Foldable[F], arg1: Functor[F]): Foldable[[α]Free[F, α]]

    Definition Classes
    FreeInstances3
  12. implicit def freeFoldable1[F[_]](implicit arg0: Foldable1[F], arg1: Functor[F]): Foldable1[[α]Free[F, α]]

    Definition Classes
    FreeInstances2
  13. implicit def freeMonad[S[_]](implicit arg0: Functor[S]): Monad[[x]Free[S, x]]

    Definition Classes
    FreeInstances
  14. implicit def freeTraverse[F[_]](implicit arg0: Traverse[F]): Traverse[[α]Free[F, α]]

    Definition Classes
    FreeInstances1
  15. implicit def freeTraverse1[F[_]](implicit arg0: Traverse1[F]): Traverse1[[α]Free[F, α]]

    Definition Classes
    FreeInstances0
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def liftF[S[_], A](value: ⇒ S[A])(implicit S: Functor[S]): Free[S, A]

    Suspends a value within a functor in a single step.

    Suspends a value within a functor in a single step.

    Definition Classes
    FreeFunctions
  20. def liftFU[MA](value: ⇒ MA)(implicit MA: Unapply[Functor, MA]): Free[M, A]

    A version of liftF that infers the nested type constructor.

    A version of liftF that infers the nested type constructor.

    Definition Classes
    FreeFunctions
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def pause: Trampoline[Unit]

    A trampoline step that doesn't do anything.

    A trampoline step that doesn't do anything.

    Definition Classes
    FreeFunctions
  25. def produce[A](a: A): Source[A, Unit]

    A source that produces the given value.

    A source that produces the given value.

    Definition Classes
    FreeFunctions
  26. def reset[A](r: Trampoline[A]): Trampoline[A]

    Collapse a trampoline to a single step.

    Collapse a trampoline to a single step.

    Definition Classes
    FreeFunctions
  27. def return_[S[_], A](value: ⇒ A)(implicit S: Applicative[S]): Free[S, A]

    Suspend the given computation in a single step.

    Suspend the given computation in a single step.

    Definition Classes
    FreeFunctions
  28. implicit def sinkMonad[S]: Monad[[x]Free[[x](⇒ S) ⇒ x, x]]

    Definition Classes
    SinkInstances
  29. implicit def sourceMonad[S]: Monad[[x]Free[[x](S, x), x]]

    Definition Classes
    SourceInstances
  30. def suspend[S[_], A](value: ⇒ Free[S, A])(implicit S: Applicative[S]): Free[S, A]

    Definition Classes
    FreeFunctions
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. implicit val trampolineInstance: Monad[Trampoline] with Comonad[Trampoline]

    Definition Classes
    TrampolineInstances
  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FreeFunctions

Inherited from FreeInstances

Inherited from SourceInstances

Inherited from SinkInstances

Inherited from TrampolineInstances

Inherited from FreeInstances0

Inherited from FreeInstances1

Inherited from FreeInstances2

Inherited from FreeInstances3

Inherited from AnyRef

Inherited from Any

Ungrouped