-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfunctor-classes-compat.cabal
130 lines (110 loc) · 3.43 KB
/
functor-classes-compat.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
name: functor-classes-compat
version: 2.0.0.2
x-revision: 3
synopsis: Data.Functor.Classes instances for core packages
description:
"Data.Functor.Classes" instances for core packages:
.
* containers
.
This package used to provide instances for @unordered-containers@
and @vector@, but these packages are since been upgraded.
Use @unordered-containers >=0.2.8.0@ and @vector >=0.12@.
homepage: https://github.com/phadej/functor-classes-compat#readme
bug-reports: https://github.com/phadej/functor-classes-compat/issues
license: BSD3
license-file: LICENSE
author: Oleg Grenrus <[email protected]>
maintainer: Oleg Grenrus <[email protected]>
copyright: 2016 Oleg Grenrus
category: Data
build-type: Simple
extra-source-files: README.md changelog.md
cabal-version: >=1.10
tested-with:
GHC ==7.4.2
|| ==7.6.3
|| ==7.8.4
|| ==7.10.3
|| ==8.0.2
|| ==8.2.2
|| ==8.4.4
|| ==8.6.5
|| ==8.8.4
|| ==8.10.7
|| ==9.0.2
|| ==9.2.8
|| ==9.4.7
|| ==9.6.3
|| ==9.8.1
flag base-transformers-1
description:
Together with base-transformers-1 pick: base >= 4.9, transformers < 0.4, 0.4.*, or >= 0.5. See cabal file for precise assignments.
manual: False
default: True
flag base-transformers-2
description: See base-transformers-1 flag
manual: False
default: True
flag containers
description: 'containers >= 0.5.9.1'
manual: False
default: True
source-repository head
type: git
location: https://github.com/phadej/functor-classes-compat
library
exposed-modules:
Data.Map.Functor.Classes
Data.Set.Functor.Classes
Data.IntMap.Functor.Classes
Data.Sequence.Functor.Classes
Data.Tree.Functor.Classes
default-language: Haskell2010
ghc-options: -Wall
-- self test:
-- so instances existence is tested while library is built.
hs-source-dirs: test
other-modules: SelfTest
-- base and transformer dependencies:
-- t t: base >= 4.9
-- t f: transformers >= 0.5
-- f t: transformers < 0.4
-- f f: transformers == 0.4.*
--
-- The order is chosen so 'f f' combination is only requiring src-old
if flag(base-transformers-1)
if flag(base-transformers-2)
build-depends: base >=4.9 && <4.20
else
build-depends:
base >=4.5 && <4.9
, transformers >=0.5 && <0.7
else
if flag(base-transformers-2)
-- we don't really care about transformers version, as long as it <0.4
-- to make flag selection deterministic
build-depends:
base >=4.5 && <4.9
, transformers >=0 && <0.4
, transformers-compat >=0.5 && <0.8
else
build-depends:
base >=4.5 && <4.9
, transformers >=0.4 && <0.5
-- containers
if flag(containers)
build-depends: containers >=0.5.9.1 && <0.7
if (flag(base-transformers-1) && flag(base-transformers-2))
hs-source-dirs: src-none/containers
else
if (!flag(base-transformers-1) && !flag(base-transformers-2))
hs-source-dirs: src-implicit/containers
else
hs-source-dirs: src-explicit/containers
else
build-depends: containers >=0.4 && <0.5.9.1
if (!flag(base-transformers-1) && !flag(base-transformers-2))
hs-source-dirs: src-implicit/containers
else
hs-source-dirs: src-explicit/containers