org.specs2.internal.scalaz

effects

package effects

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. effects
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Dup[H[_[_]]] extends AnyRef

    Duplicate a handle in the parent region.

  2. case class FinalizerHandle[R[_]](finalizer: RefCountedFinalizer) extends Product with Serializable

    A handle to a finalizer that allows you to duplicate it to a parent region using "dup".

  3. sealed trait IO[A] extends AnyRef

  4. class IORef[A] extends NewType[STRef[RealWorld, A]]

    A mutable reference in the IO monad.

  5. abstract class MonadControlIO[M[_]] extends NewType[MonadIO[M]]

    A class of IO-based monads supporting an extra operation liftControlIO, enabling conrol operations on IO to be lifted into the monad.

  6. abstract class MonadIO[M[_]] extends NewType[Monad[M]]

    Classifies IO-like monads, enabling IO actions to be lifted into the monad.

  7. sealed trait RealWorld extends AnyRef

  8. case class RefCountedFinalizer(finalizer: IO[Unit], refcount: IORef[Int]) extends Product with Serializable

    A finalizer paired with its reference count which defines how many times it has been registered in some region.

  9. case class RegionT[S, P[_], A](value: Kleisli[P, IORef[List[RefCountedFinalizer]], A]) extends NewType[Kleisli[P, IORef[List[RefCountedFinalizer]], A]] with Product with Serializable

    A monad transformer in which scarce resources can be opened.

  10. type RunInBase[M[_], Base[_]] = Forall[[B](M[B]) ⇒ Base[M[B]]]

    Definition Classes
    package
  11. sealed trait ST[S, A] extends AnyRef

    Purely functional mutable state threads.

  12. class STArray[S, A] extends AnyRef

    Mutable array in state thread S containing values of type A.

  13. class STRef[S, A] extends AnyRef

    Mutable variable in state thread S containing a value of type A.

Value Members

  1. object Dup extends AnyRef

  2. object IO extends AnyRef

  3. object MonadIO extends AnyRef

  4. object RegionT extends Serializable

  5. object ST extends AnyRef

  6. def accumArray[F[_], A, B](size: Int, f: (A, B) ⇒ A, z: A, ivs: F[(Int, B)])(implicit arg0: Foldable[F], arg1: Manifest[A]): ImmutableArray[A]

    Accumulates an integer-associated list into an immutable array.

    Accumulates an integer-associated list into an immutable array.

    Definition Classes
    package
  7. def controlIO[M[_], A](f: (RunInBase[M, IO]) ⇒ IO[M[A]])(implicit m: MonadControlIO[M]): M[A]

    Definition Classes
    package
  8. def dup[H[_[_]], PP[_], CS, PS](h: H[[α]RegionT[CS, [β]RegionT[PS, PP, β], α]])(implicit arg0: Dup[H], arg1: MonadIO[PP]): RegionT[CS, [α]RegionT[PS, PP, α], H[[β]RegionT[PS, PP, β]]]

    Duplicates a handle to its parent region.

    Duplicates a handle to its parent region.

    Definition Classes
    package
  9. def fixST[S, A](k: (⇒ A) ⇒ ST[S, A]): ST[S, A]

    Allows the result of a state transformer computation to be used lazily inside the computation.

    Allows the result of a state transformer computation to be used lazily inside the computation.

    Definition Classes
    package
  10. def getChar: IO[Char]

    Definition Classes
    package
  11. def idLiftControl[M[_], A](f: (RunInBase[M, M]) ⇒ M[A])(implicit arg0: Monad[M]): M[A]

    Definition Classes
    package
  12. implicit def ioMonoid[A](implicit arg0: Monoid[A]): Monoid[IO[A]]

    Definition Classes
    package
  13. implicit def ioToST[A](io: IO[A]): ST[RealWorld, A]

    Definition Classes
    package
  14. def newArr[S, A](size: Int, z: A)(implicit arg0: Manifest[A]): ST[S, STArray[S, A]]

    Allocates a fresh mutable array.

    Allocates a fresh mutable array.

    Definition Classes
    package
  15. def newIORef[A](a: ⇒ A): IO[IORef[A]]

    Definition Classes
    package
  16. def newVar[S, A](a: A): ST[S, STRef[S, A]]

    Allocates a fresh mutable reference.

    Allocates a fresh mutable reference.

    Definition Classes
    package
  17. def onExit[S, P[_]](finalizer: IO[Unit])(implicit arg0: MonadIO[P]): RegionT[S, P, FinalizerHandle[[α]RegionT[S, P, α]]]

    Register a finalizer in the current region.

    Register a finalizer in the current region. When the region terminates, all registered finalizers will be performed if they're not duplicated to a parent region.

    Definition Classes
    package
  18. def putChar(c: Char): IO[Unit]

    Definition Classes
    package
  19. def putOut[A](a: A): IO[Unit]

    Definition Classes
    package
  20. def putStr(s: String): IO[Unit]

    Definition Classes
    package
  21. def putStrLn(s: String): IO[Unit]

    Definition Classes
    package
  22. def readLn: IO[String]

    Definition Classes
    package
  23. def returnST[S, A](a: ⇒ A): ST[S, A]

    Put a value in a state thread

    Put a value in a state thread

    Definition Classes
    package
  24. def runRegionT[P[_], A](r: Forall[[S]RegionT[S, P, A]])(implicit arg0: MonadControlIO[P]): P[A]

    Execute a region inside its parent region P.

    Execute a region inside its parent region P. All resources which have been opened in the given region and which haven't been duplicated using "dup", will be closed on exit from this function whether by normal termination or by raising an exception. Also all resources which have been duplicated to this region from a child region are closed on exit if they haven't been duplicated themselves. The Forall quantifier prevents resources from being returned by this function.

    Definition Classes
    package
  25. def runST[A](f: Forall[[S]ST[S, A]]): A

    Run a state thread

    Run a state thread

    Definition Classes
    package
  26. implicit def stApplicative[S]: Applicative[[A]ST[S, A]]

    Definition Classes
    package
  27. implicit def stMonad[S]: Monad[[A]ST[S, A]]

    Definition Classes
    package
  28. implicit def stMonoid[S, A](implicit arg0: Monoid[A]): Monoid[ST[S, A]]

    Definition Classes
    package
  29. implicit def stRefEqual[S, A]: Equal[STRef[S, A]]

    Equality for STRefs is reference equality

    Equality for STRefs is reference equality

    Definition Classes
    package
  30. implicit def stToIO[A](st: ST[RealWorld, A]): IO[A]

    Definition Classes
    package
  31. def throwIO[A](e: Throwable): IO[A]

    Throw the given error in the IO monad.

    Throw the given error in the IO monad.

    Definition Classes
    package

Inherited from AnyRef

Inherited from Any