syntactic-1.16.2: Generic abstract syntax, and utilities for embedded languages

Safe HaskellNone
LanguageHaskell2010

Language.Syntactic.Interpretation.Evaluation

Synopsis

Documentation

class Eval expr where Source

Minimal complete definition

Nothing

Methods

evaluate :: expr a -> Denotation a Source

Evaluation of expressions

Instances

Eval Semantics Source 
Eval Empty Source 
Eval Condition Source 
Eval Construct Source 
Eval Identity Source 
Eval Literal Source 
Eval Tuple Source 
Eval Select Source 
Eval Let Source 
Eval dom => Eval (AST dom) Source 
Monad m => Eval (MONAD m) Source 
(Eval expr1, Eval expr2) => Eval ((:+:) expr1 expr2) Source 
Eval dom => Eval ((:||) dom pred) Source 
Eval dom => Eval ((:|) dom pred) Source 
Eval expr => Eval (Decor info expr) Source 
Eval dom => Eval (SubConstr1 c dom p) Source 
Eval dom => Eval (SubConstr2 c dom pa pb) Source 

evaluateDefault :: Semantic expr => expr a -> Denotation a Source

Default implementation of evaluate