HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulesimple-reflect-0.3.3Haskell98

Debug.SimpleReflect.Expr

Simple reflection of haskell expressions containing variables.

Contents
  1. Construction
  2. Evaluating
Synopsis

Construction

datadata Expr

A reflected expression

Instances13Bounded, Enum, Eq, Floating, Fractional, Integral, …
  • Bounded ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • Enum ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • Eq ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • Floating ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • Fractional ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • Integral ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • Num ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • Ord ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • Real ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • Show ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • Semigroup ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • Monoid ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr
  • FromExpr ExprDefined in simple-reflect-0.3.3 · Debug.SimpleReflect.Expr

Evaluating

valuereduce :: Expr -> Expr

Reduce (evaluate) an expression once.

For example reduce (1 + 2 + 3 + 4) == 3 + 3 + 4