fortran-src-0.11.0: Parsers and analyses for Fortran standards 66, 77, 90, 95 and 2003 (partial).
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Fortran.Repr.Eval.Common

Synopsis

Documentation

class Monad m => MonadEval m where Source #

Monads which provide functionality to evaluate some Fortran type or value.

We abstract over the evaluation target type in order to reuse this for both value evaluation, and "type evaluation", since there is (a small amount of) overlap.

Instances of this class will have a way to access variables in the current context (e.g. a Reader over a Map), and log warnings (e.g. a Writer String).

Associated Types

type EvalTo m Source #

Target type that we evaluate to.

Methods

lookupFVar :: Name -> m (Maybe (EvalTo m)) Source #

warn :: String -> m () Source #

Arbitrarily record some user-facing information concerning evaluation.

For example, potentially useful when making defaulting decisions.