All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.specs2.control.eff.syntax.console.scala Maven / Gradle / Ivy

The newest version!
package org.specs2.control.eff.syntax

import org.specs2.control.eff._

object console extends console

trait console {

  implicit class ConsoleEffectOps[R <: Effects, A](e: Eff[R, A]) {

    def runConsole[U <: Effects](implicit member: Member.Aux[Console, R, U]): Eff[U, A] =
      ConsoleEffect.runConsole(e)

    def runConsoleToPrinter[U <: Effects](printer: String => Unit)(implicit m : Member.Aux[Console, R, U]) =
      ConsoleEffect.runConsoleToPrinter(printer)(e)

  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy