scalaz

effects

package effects

Visibility
  1. Public
  2. All

Type Members

  1. trait IO [A] extends AnyRef

    Attributes
    sealed
  2. class IORef [A] extends NewType[STRef[RealWorld, A]]

    A mutable reference in the IO monad.

  3. trait RealWorld extends AnyRef

    Attributes
    sealed
  4. trait ST [S, A] extends AnyRef

    Purely functional mutable state threads.

  5. class STArray [S, A] extends AnyRef

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

  6. class STRef [S, A] extends AnyRef

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

Value Members

  1. object IO extends AnyRef

  2. object ST extends AnyRef

  3. 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
  4. def bufferFile (f: File): IO[BufferedReader]

    Definition Classes
    package
  5. def closeReader (r: Reader): IO[Unit]

    Definition Classes
    package
  6. def enumerateBy [A] (action: IO[A]): EnumeratorM[IO, A]

    Repeatedly apply the given action, enumerating the results.

    Repeatedly apply the given action, enumerating the results.

    Definition Classes
    package
  7. 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
  8. def getChar : IO[Char]

    Get the next character from standard input

    Get the next character from standard input

    Definition Classes
    package
  9. def getFileLines (f: File): EnumeratorM[IO, String]

    Definition Classes
    package
  10. val getLines : EnumeratorM[IO, String]

    Enumerate the lines on standard input as Strings

    Enumerate the lines on standard input as Strings

    Definition Classes
    package
  11. def getReaderLines (r: ⇒ BufferedReader): EnumeratorM[IO, String]

    Enumerate the lines from a BufferedReader

    Enumerate the lines from a BufferedReader

    Definition Classes
    package
  12. def io [A] (a: ⇒ A): IO[A]

    Perform the given side-effect in an IO action

    Perform the given side-effect in an IO action

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

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

    Attributes
    implicit
    Definition Classes
    package
  15. 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
  16. def newIORef [A] (a: ⇒ A): IO[IORef[A]]

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

    Allocates a fresh mutable reference.

    Allocates a fresh mutable reference.

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

    Write a character to standard output

    Write a character to standard output

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

    Print the given object to standard output

    Print the given object to standard output

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

    Write a String to standard output

    Write a String to standard output

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

    Write a String to standard output, followed by a newline

    Write a String to standard output, followed by a newline

    Definition Classes
    package
  22. def rReadLn (r: BufferedReader): IO[Option[String]]

    Read a line from a buffered reader

    Read a line from a buffered reader

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

    Read the next line from standard input

    Read the next line from standard input

    Definition Classes
    package
  24. 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
  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]]

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

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

    Attributes
    implicit
    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

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

    Attributes
    implicit
    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
  32. def wPutStr (w: PrintWriter, s: String): IO[Unit]

    Write a string to a PrintWriter

    Write a string to a PrintWriter

    Definition Classes
    package
  33. def wPutStrLn (w: PrintWriter, s: String): IO[Unit]

    Write a String to a PrintWriter, followed by a newline

    Write a String to a PrintWriter, followed by a newline

    Definition Classes
    package