summaryrefslogtreecommitdiff
path: root/dependent-enummap.cabal
blob: 0c64b58cc6642209f46832dcd304cb3eab7f071c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cabal-version:   3.0
name:            dependent-enummap
version:         0.1.0.0
synopsis:        A generalisation of EnumMap to dependent types
description:
  A generalisation of EnumMap to dependent key and value types. The key type
  needs to be an instance of class Enum1, a generalisation of the Enum class.
  Most of the API of EnumMap/IntMap is supported, usually by wrapping IntMap
  operations in coercions accompanied by some runtime type-consistency
  assertions.
license:         BSD-3-Clause
copyright:       (c) 2025 Tom Smeding, Mikolaj Konarski
author:          Tom Smeding, Mikolaj Konarski
maintainer:      Tom Smeding <xhackage@tomsmeding.com>
category:        Data, Dependent Types
build-type:      Simple

library
  exposed-modules:
    Data.Dependent.EnumMap.Strict
    Data.Dependent.EnumMap.Strict.Internal
    -- Data.Dependent.EnumMap.Strict.Unsafe
  build-depends:
    base >= 4.15 && < 4.22,
    containers >= 0.6 && < 0.9,
    dependent-sum >= 0.7 && < 0.8,
    some >= 1 && < 2,
  hs-source-dirs: src
  default-language: Haskell2010
  ghc-options: -Wall

test-suite test
  type: exitcode-stdio-1.0
  main-is: Main.hs
  build-depends:
    base,
    dependent-enummap,
    dependent-sum,
    some,
  hs-source-dirs: test
  default-language: Haskell2010
  ghc-options: -Wall

source-repository head
  type: git
  location: https://git.tomsmeding.com/dependent-enummap