| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Fortran.Vars.Eval.FortranSrc
Description
fortran-vars-style expression evaluation which piggybacks off the evaluator in fortran-src.
Synopsis
- newtype Eval a = Eval {}
- type Eval' = ExceptT Error (Reader SymbolTable)
- runEval :: SymbolTable -> Eval a -> Either Error a
- module Language.Fortran.Vars.Eval.FortranSrc.Translate
Documentation
Fortran expression evaluation monad, using SymbolTable and reporting
fortran-src evaluator errors.
Instances
| Applicative Eval Source # | |
| Functor Eval Source # | |
| Monad Eval Source # | |
| MonadFEval Eval Source # | Evaluate Fortran expressions to We look up variables from a plain |
| MonadError Error Eval Source # | |
Defined in Language.Fortran.Vars.Eval.FortranSrc | |
| MonadReader SymbolTable Eval Source # | |
Defined in Language.Fortran.Vars.Eval.FortranSrc Methods ask :: Eval SymbolTable Source # local :: (SymbolTable -> SymbolTable) -> Eval a -> Eval a Source # reader :: (SymbolTable -> a) -> Eval a Source # | |
| type EvalTo Eval Source # | |
Defined in Language.Fortran.Vars.Eval.FortranSrc | |
type Eval' = ExceptT Error (Reader SymbolTable) Source #
Fortran expression evaluation monad, using SymbolTable and reporting
fortran-src evaluator errors.
We use a newtype wrapper on this at Eval. The type synonym assists some
boilerplate.