ghc-typelits-presburger

Presburger Arithmetic Solver for GHC Type-level natural numbers.

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

Version on this page:0.3.0.1
LTS Haskell 22.14:0.7.3.0
Stackage Nightly 2024-03-29:0.7.3.0
Latest on Hackage:0.7.3.0

See all snapshots ghc-typelits-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:ghc-typelits-presburger-0.3.0.1@sha256:f82afa7a1eb02a743eb2b92ceb18b24cafde78ddc3ebb6b6d57f32db6a0aabda,2641

Module documentation for 0.3.0.1

ghc-typelits-presburger augments GHC type-system with Presburger Arithmetic Solver for Type-level natural numbers. This plugin only work with GHC builtin operations. To work with those of singletons package, use ghc-typelits-meta and/or ghc-typelits-presburger instead.

Since 0.3.0.0, integration with singletons package moves to singletons-presburger.

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

OPTIONS_GHC -fplugin GHC.TypeLits.Presburger