@hackage / singletons-presburger

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

Latest0.7.4.1

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

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