singletons-presburger

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

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

LTS Haskell 24.2:0.7.4.1
Stackage Nightly 2025-08-03:0.7.4.1
Latest on Hackage:0.7.4.1

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.7.4.1@sha256:899a58fc5e5d765e166e1becafe1843c69d90858dac3bf43266d0a69c4cf3ab9,2194

Module documentation for 0.7.4.1

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

Changes

Changelog

0.7.4.0

  • Supports GHC 9.10
  • Drops GHC <9.2

0.7.3.0

  • Supports GHC 9.8
  • Drops support for GHC <9

0.7.2.0

  • Supports GHC 9.6

0.7.1.0

  • Proper Support of GHC 9.4 (Now can solve Assert properly)

0.7.0.0

  • Support GHC 9.4
  • The plugin can solve constraints involving type-level Assert, Not, (&&), (||), and/or If from new base.

0.6.0.0

  • Stop discharging redundant constraints
  • Support GHC 9.0.1
  • Drop a support for GHC <8.6

0.4.0.0

  • Fixes constraint solving (fixes #9); this may change the previous (unsound) behaviour, and hence it is breaking change.

0.3.0.1

  • Supports GHC >= 8.10.

0.3.0.0

  • Initial release: separated singletons support from ghc-typelits-presburger