singletons-presburger

Presburger Arithmetic Solver for GHC Type-level natural numbers with Singletons package. https://github.com/konn/ghc-typelits-presburger#readme

LTS Haskell 16.15:0.3.0.1
Stackage Nightly 2020-09-26:0.3.0.1
Latest on Hackage:0.3.0.1

See all snapshots singletons-presburger appears in

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

Module documentation for 0.3.0.1

This version can be pinned in stack with:singletons-presburger-0.3.0.1@sha256:5045db924e1b3b9578d1a35f5b6b63ddbd43d41697578987bee5bcbf9ce8eba0,2192

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