singletons-presburger

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

https://github.com/konn/ghc-typelits-presburger#readme

Version on this page:0.5.0.0
LTS Haskell 22.17:0.7.3.0
Stackage Nightly 2024-04-18:0.7.3.0
Latest on Hackage:0.7.3.0

See all snapshots singletons-presburger appears in

BSD-3-Clause licensed by Hiromi ISHII
Maintained by konn.jinro _at_ gmail.com
This version can be pinned in stack with:singletons-presburger-0.5.0.0@sha256:6df329abf8270a944c728544c8eedfe215a8ac6aee24953eec64ef2c78f6fad4,2208

Module documentation for 0.5.0.0

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