Minimalistic toolkit for simple mathematical expression.

LTS Haskell 22.22:
Stackage Nightly 2024-05-21:
Latest on Hackage:

See all snapshots simple-expr appears in

BSD-3-Clause licensed by Alexey Tochin
Maintained by [email protected]
This version can be pinned in stack with:simple-expr-,2855

Module documentation for

Used by 1 package in nightly-2024-05-21(full list with versions):

This is a minimalistic toolkit for simple mathematical expression developed for debug purposes similar to 'simple-reflect' package but based on slightly different principles. In particular, we use ordinary syntactic trees instead of turning them into strings. There is a primitive manipulation capability like

>>> simplify $ (x + 0) * 1 - x * (3 - 2)

Besides an expression visualization feature is also provided.

See tutorial for details.


Revision history for simple-expr

[] – 2023-05-12


  • Basic types SimpleExpr, Expr and instances for NumHask typeclasses.
  • Conversion to graphs from graphite package.
  • Visualization provided by graphviz.
  • Tutorial

[] – 2023-08-05


  • Compatibility up to LTS 21.6