Presburger Arithmetic Solver for GHC Type-level natural numbers with Singletons package.

Version on this page:
LTS Haskell 16.31:
Stackage Nightly 2021-01-20:
Latest on Hackage:

See all snapshots singletons-presburger appears in

BSD-3-Clause licensed by Hiromi ISHII
Maintained by konn.jinro _at_
This version can be pinned in stack with:singletons-presburger-,2192

Module documentation for

The singletons-presburger plugin augments GHC type-system with Presburger Arithmetic Solver for Type-level natural numbers, with integration with singletons package.

You can use by adding this package to dependencies and add the following pragma to the head of .hs files:

OPTIONS_GHC -fplugin Data.Singletons.TypeNats.Presburger