-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
typerep-map.cabal
139 lines (123 loc) · 4.78 KB
/
typerep-map.cabal
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
cabal-version: 2.4
name: typerep-map
version: 0.6.0.0
synopsis: Efficient implementation of a dependent map with types as keys
description:
A dependent map from type representations to values of these types.
.
Here is an illustration of such a map:
.
> TMap
> ---------------
> Int -> 5
> Bool -> True
> Char -> 'x'
.
In addition to @TMap@, we provide @TypeRepMap@ parametrized by a
@vinyl@-style interpretation. This data structure is equivalent to @DMap
TypeRep@, but with significantly more efficient lookups.
homepage: https://github.com/kowainik/typerep-map
bug-reports: https://github.com/kowainik/typerep-map/issues
license: MPL-2.0
license-file: LICENSE
author: Veronika Romashkina, Vladislav Zavialov, Dmitrii Kovanikov
maintainer: Kowainik <[email protected]>
copyright: 2017-2022 Kowainik
category: Data, Data Structures, Types
build-type: Simple
extra-doc-files: README.md
, CHANGELOG.md
tested-with: GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.7
, GHC == 9.0.2
, GHC == 9.2.4
, GHC == 9.4.2
source-repository head
type: git
location: https://github.com/kowainik/typerep-map.git
common common-options
build-depends: base >= 4.10 && < 4.18
default-language: Haskell2010
default-extensions: BangPatterns
DerivingStrategies
OverloadedStrings
RecordWildCards
ScopedTypeVariables
TypeApplications
ghc-options: -Wall
-Wcompat
-Widentities
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wredundant-constraints
-fhide-source-paths
if impl(ghc >= 8.4)
ghc-options: -Wmissing-export-lists
-Wpartial-fields
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
-Werror=missing-deriving-strategies
if impl(ghc >= 8.10)
ghc-options: -Wunused-packages
if impl(ghc >= 9.0)
ghc-options: -Winvalid-haddock
if impl(ghc >= 9.2)
ghc-options: -Wredundant-bang-patterns
-Woperator-whitespace
library
import: common-options
hs-source-dirs: src
exposed-modules: Data.TMap
Data.TypeRepMap
Data.TypeRepMap.Internal
build-depends: ghc-prim >= 0.5.1.1 && < 0.10
, primitive ^>= 0.7.0
, deepseq ^>= 1.4
library typerep-extra-impls
import: common-options
hs-source-dirs: typerep-extra-impls
exposed-modules: Data.TypeRep.CMap
Data.TypeRep.OptimalVector
Data.TypeRep.Vector
build-depends: containers >= 0.5.10.2 && < 0.7
, vector >= 0.12.0.1 && < 0.14
, deepseq ^>= 1.4
test-suite typerep-map-test
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Test.hs
other-modules: Test.TypeRep.CMap
, Test.TypeRep.TypeRepMap
, Test.TypeRep.TypeRepMapProperty
, Test.TypeRep.Vector
, Test.TypeRep.VectorOpt
build-depends: ghc-typelits-knownnat >= 0.4.2 && < 0.8
, hedgehog >= 1.0 && < 1.3
, hspec >= 2.7.1 && < 2.11
, hspec-hedgehog ^>= 0.0.1
, typerep-map
, typerep-extra-impls
ghc-options: -threaded -rtsopts -with-rtsopts=-N
benchmark typerep-map-benchmark
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: benchmark
main-is: Main.hs
other-modules: CMap
, CacheMap
, DMap
, Spec
, Vector
, OptimalVector
build-depends: criterion >= 1.4.1.0 && < 1.7
, deepseq ^>= 1.4.3.0
, dependent-map >= 0.2.4.0 && < 0.5
, dependent-sum >= 0.5 && < 0.8
, ghc-typelits-knownnat >= 0.4.2 && < 0.8
, typerep-map
, typerep-extra-impls
ghc-options: -O2 -threaded -rtsopts -with-rtsopts=-N -freduction-depth=0