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

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

There is a newer version: 4.10.6
Show newest version
package org.specs2.control.eff.syntax

import scalaz._
import org.specs2.control.eff._
import EvalEffect._

object eval extends eval

trait eval {

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

    def runEval[U <: Effects](implicit member: Member.Aux[Eval, R, U]): Eff[U, A] =
      EvalInterpretation.runEval(e)

    def attemptEval[U <: Effects](implicit member: Member.Aux[Eval, R, U]): Eff[U, Throwable \/ A] =
      EvalInterpretation.attemptEval(e)

  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy