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

LTS Haskell 15.7:
Stackage Nightly 2020-04-10:
Latest on Hackage:

See all snapshots singletons-presburger appears in

BSD-3-Clause licensed by Hiromi ISHII
Maintained by konn.jinro _at_

Module documentation for

This version can be pinned in stack with:[email protected]:f39ad9cbc1d2aea4f0e8e007be1a3cf7ec0d6ae8640c174d95ad36582f46c9c1,2180

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