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

[ bsd3, library, math, type-system ] [ Propose Tags ]

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


[Index] [Quick Jump]


Automatic Flags

Builds example


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,,,, (info)
Change log
Dependencies base (>=4.7 && <5), equational-reasoning, ghc, ghc-typelits-presburger (>=0.4), mtl, reflection, singletons, singletons-base (>=3.0), singletons-presburger, singletons-th [details]
License BSD-3-Clause
Copyright 2015 (c) Hiromi ISHII
Author Hiromi ISHII
Maintainer konn.jinro _at_
Category Math, Type System
Home page
Bug tracker
Source repo head: git clone
Uploaded by HiromiIshii at 2024-06-09T11:40:03Z
Distributions LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 2 direct, 16 indirect [details]
Executables simple-arith
Downloads 1379 total (32 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-06-09 [all 1 reports]