Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Implements an effect for evaluation of the Expr
abstraction.
Synopsis
- data ExprEval v r where
- eval :: forall v. forall effs. Member (ExprEval v) effs => Expr v -> Eff effs v
- defaultEval :: MonadIO m => (v -> Bool, Expr v -> v) -> ExprEval v ~> m
- ifExprM :: forall v r v'. Member (ExprEval v) r => Expr v -> Eff r v' -> Eff r v' -> Eff r v'
- whenExprM :: forall v r. Member (ExprEval v) r => Expr v -> Eff r () -> Eff r ()
- unlessExprM :: forall v r. Member (ExprEval v) r => Expr v -> Eff r () -> Eff r ()
Documentation
ifExprM :: forall v r v'. Member (ExprEval v) r => Expr v -> Eff r v' -> Eff r v' -> Eff r v' Source #
Like ifM
but with internal expression evaluation.