hermit-0.5.0.0: Haskell Equational Reasoning Model-to-Implementation Tunnel

Safe HaskellNone
LanguageHaskell2010

HERMIT.Shell.Interpreter

Contents

Synopsis

The HERMIT Interpreter

data Interp :: * -> * Source

An Interp cmd is a possible means of converting a Typeable value to a value of type cmd.

Instances

interp :: Typeable a => (a -> cmd) -> Interp cmd Source

The primitive way of building an Interp.

interpExprH :: MonadState CommandLineState m => [Interp b] -> ExprH -> m b Source

Interpret an ExprH by looking up the appropriate Dynamic(s) in the provided Dictionary, then interpreting the Dynamic(s) with the provided Interps, returning the first interpretation to succeed (or an error string if none succeed).