Safe Haskell | None |
---|---|
Language | Haskell2010 |
Default implementations of some interpretation functions
Synopsis
- data Semantics a where
- type family Denotation sig
- class Semantic expr where
Documentation
data Semantics a where Source #
A representation of a syntactic construct as a String
and an evaluation
function. It is not meant to be used as a syntactic symbol in an AST
. Its
only purpose is to provide the default implementations of functions like
equal
via the Semantic
class.
Sem :: {..} -> Semantics a | |
|
type family Denotation sig Source #
The denotation of a symbol with the given signature
Instances
type Denotation (Full a) Source # | |
Defined in Language.Syntactic.Interpretation.Semantics | |
type Denotation (a :-> sig) Source # | |
Defined in Language.Syntactic.Interpretation.Semantics |