simple-expr

Minimalistic toolkit for simple mathematical expression.

LTS Haskell 22.18:0.1.1.0
Stackage Nightly 2024-04-27:0.1.1.0
Latest on Hackage:0.1.1.0

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-0.1.1.0@sha256:4c33a11e1bcd533c1dbc2a8b83a409a83f7a3dceb14ade3f572d4621855974ac,2855

Module documentation for 0.1.1.0

Used by 1 package in nightly-2024-03-29(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)
0

Besides an expression visualization feature is also provided.

See tutorial for details.

Changes

Revision history for simple-expr

[0.1.0.0] – 2023-05-12

Added

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

[0.1.1.0] – 2023-08-05

Fixed

  • Compatibility up to LTS 21.6