Portability | portable |
---|---|
Stability | experimental |
Maintainer | twanvl@gmail.com |
Safe Haskell | Safe-Inferred |
Simple reflection of haskell expressions containing variables.
Construction
A reflected expression
Conversion from Expr
to other types
data Associativity Source
This data type specifies the associativity of operators: left, right or none.
op :: Associativity -> Int -> String -> Expr -> Expr -> ExprSource
An infix operator with the given associativity, precedence and name
Evaluating
Reduce (evaluate) an expression once.
For example reduce (1 + 2 + 3 + 4) == 3 + 3 + 4