ConsoleEffect

org.specs2.control.eff.ConsoleEffect
object ConsoleEffect

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class ConsoleMessage(value: String) extends AnyVal

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all

Types

type Console[A] = Writer[ConsoleMessage, A]
type _console[R] = MemberIn[Console, R]

Value members

Concrete methods

def log[R : _console](message: String, doIt: Boolean): Eff[R, Unit]
def logThrowable[R : _console](t: Throwable, doIt: Boolean): Eff[R, Unit]
def logThrowable[R : _console](t: Throwable): Eff[R, Unit]
def runConsole[R, U, A](w: Eff[R, A])(implicit m: Aux[Console, R, U]): Eff[U, A]

This interpreter prints messages to the console

This interpreter prints messages to the console

Attributes

def runConsoleToPrinter[R, U, A](printer: String => Unit)(w: Eff[R, A])(implicit m: Aux[Console, R, U]): Eff[U, A]

This interpreter prints messages to a printing function

This interpreter prints messages to a printing function

Attributes