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

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

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

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

object eval extends eval

trait eval {

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

    def runEval(implicit member: Member[Eval, R]): Eff[member.Out, A] =
      EvalInterpretation.runEval(e)(member.aux)

    def attemptEval(implicit member: Member[Eval, R]): Eff[member.Out, Throwable \/ A] =
      EvalInterpretation.attemptEval(e)(member.aux)

  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy