@hackage / ghc-typelits-presburger

Presburger Arithmetic Solver for GHC Type-level natural numbers.

Latest0.7.4.2

About

Metadata

  • Last updated , by HiromiIshii
  • License BSD-3-Clause
  • Categories Mathematics, Type System
  • Maintained by: konn.jinro _at_ gmail.com

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.12.2
  2. 9.10.2
  3. 9.8.4
  4. 9.6.7

Package Flags

Use the -f option with cabal commands to enable flags

    examples (off by default)

    Builds example

Readme

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