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

Safe HaskellNone

HERMIT.Interp

Contents

Synopsis

The HERMIT Interpreter

data Interp Source

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

Instances

interp :: Typeable a => (a -> b) -> Interp bSource

The primitive way of building an Interp.

interpExprH :: Monad m => Dictionary -> [Interp a] -> ExprH -> m aSource

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).