org.specs2.control

ActionT

Related Docs: object ActionT | package control

case class ActionT[F[_], W, R, A](runT: (R) ⇒ StatusT[[a]WriterT[F, W, a], A]) extends Product with Serializable

A data type for holding computations that can fail with exceptions. This is effectively a ReaderT > ErrorT > WriterT > F stack, with a specialized error type. This particular specialization handles string/exception based failures and should be used to wrap up unsafe apis (i.e. java code).

This specialization exists for a number of reasons:

Credits to @markhibberd

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ActionT
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ActionT(runT: (R) ⇒ StatusT[[a]WriterT[F, W, a], A])

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. def andFinally(otherwise: ActionT[F, W, R, Unit])(implicit W: Monoid[W], F: Monad[F]): ActionT[F, W, R, A]

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def contramap[B](f: (B) ⇒ R)(implicit W: Monoid[W], F: Functor[F]): ActionT[F, W, B, A]

  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def execute(r: R)(implicit F: Functor[F]): F[Status[A]]

  10. def executeT(r: R)(implicit F: Functor[F]): StatusT[F, A]

  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def flatMap[B](f: (A) ⇒ ActionT[F, W, R, B])(implicit W: Monoid[W], F: Monad[F]): ActionT[F, W, R, B]

  13. final def getClass(): Class[_]

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

    Definition Classes
    Any
  15. def map[B](f: (A) ⇒ B)(implicit W: Monoid[W], F: Functor[F]): ActionT[F, W, R, B]

  16. def mapError(f: (scalaz.\&/.These[String, Throwable]) ⇒ scalaz.\&/.These[String, Throwable])(implicit W: Monoid[W], F: Functor[F]): ActionT[F, W, R, A]

  17. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  20. def onStatus[B](f: (Status[A]) ⇒ Status[B])(implicit W: Monoid[W], F: Functor[F]): ActionT[F, W, R, B]

  21. def orElse(otherwise: ActionT[F, W, R, A])(implicit W: Monoid[W], F: Monad[F]): ActionT[F, W, R, A]

  22. def orElse(otherwise: ⇒ A)(implicit W: Monoid[W], F: Monad[F]): ActionT[F, W, R, A]

  23. def run(r: R): F[(W, Status[A])]

  24. val runT: (R) ⇒ StatusT[[a]WriterT[F, W, a], A]

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def unless(condition: Boolean)(implicit W: Monoid[W], F: Monad[F]): ActionT[F, W, R, Unit]

  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def when(condition: Boolean)(implicit W: Monoid[W], F: Monad[F]): ActionT[F, W, R, Unit]

  31. def whenFailed(otherwise: (\&/[String, Throwable]) ⇒ ActionT[F, W, R, A])(implicit W: Monoid[W], F: Monad[F]): ActionT[F, W, R, A]

  32. def |||(otherwise: ⇒ ActionT[F, W, R, A])(implicit W: Monoid[W], F: Monad[F]): ActionT[F, W, R, A]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped