@hackage / ixset-typed

Efficient relational queries on Haskell sets.

Latest0.5.1.1

About

Metadata

  • Last updated , by AdamGundry
  • License BSD-3-Clause
  • Categories Data Structures
  • Maintained by: Andres Löh <andres@well-typed.com>, Adam Gundry <adam@well-typed.com>

  • Lottery factor: 2

Links

Installation

Tested Compilers

  1. 9.10.2
  2. 9.8.4
  3. 9.6.7
  4. 9.4.8
  5. 9.2.8
  6. 9.0.2
  7. 8.10.7
  8. 8.8.4
  9. 8.6.5
  10. 8.4.4
  11. 8.2.2
  12. 8.0.2

Readme

This Haskell package provides a data structure of sets that are indexed by potentially multiple indices.

Sets can be created, modified, and queried in various ways.

The package is a variant of the ixset package. The ixset package makes use of run-time type information to find a suitable index on a query, resulting in possible run-time errors when no suitable index exists. In ixset-typed, the types of all indices available or tracked in the type system. Thus, ixset-typed should be safer to use than ixset, but in turn requires more GHC extensions.

At the moment, the two packages are relatively compatible. As a consequence of the more precise types, a few manual tweaks are necessary when switching from one to the other, but the interface is mostly the same.