ghc-typelits-presburger: Presburger Arithmetic Solver for GHC Type-level natural numbers.

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

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, 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
Versions [faq],,,,,,,,,,,,,, (info)
Dependencies base (>=4.7 && <5), containers, equational-reasoning, ghc (<9.1), ghc-tcplugins-extra (>=0.2 && <0.5), ghc-typelits-presburger, mtl, pretty, reflection, syb, transformers [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 2021-03-13T05:53:18Z
Distributions LTSHaskell:, NixOS:, Stackage:
Executables simple-arith-core
Downloads 5819 total (32 in the last 30 days)
Rating 1.75 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-03-13 [all 1 reports]


[Index] [Quick Jump]



Builds example


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


Maintainer's Corner

For package maintainers and hackage trustees