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.6.1.0@sha256:4bce66e47c97779dc528b21e8295ab6e5a8d5b602bad9f2111301ae9dcb698ce,3204

Module documentation for 0.6.1.0

  • GHC
    • GHC.TypeLits
      • GHC.TypeLits.Presburger
        • GHC.TypeLits.Presburger.Compat
        • GHC.TypeLits.Presburger.Types

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