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

org.atnos.eff.syntax.eval.scala Maven / Gradle / Ivy

package org.atnos.eff.syntax

import cats._, data._
import org.atnos.eff._

object eval extends eval

trait eval {

  implicit class EvalEffectOps[R <: Effects, 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 Xor A] =
      EvalInterpretation.attemptEval(e)(member.aux)

  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy