HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

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