-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdht-api.cabal
160 lines (138 loc) · 4.81 KB
/
dht-api.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
name: dht-api
version: 0.1.0.0
synopsis: Abstract API for DHT implementations.
description:
Abstract and high-level API for DHT implementations. It is defined in a way
so that concrete DHT implementations depend on this package instead the other
way round.
homepage: https://github.com/FPBrno/dht-api
license: BSD3
license-file: LICENSE
author: Jan Šipr, Matej Kollár, Peter Trško
maintainer: peter.trsko@gmail.com
copyright: (c) 2015 Jan Šipr, Matej Kollár; 2015-2016 Peter Trško
category: Data
build-type: Simple
cabal-version: >=1.10
extra-source-files: ChangeLog.md, README.md
flag pedantic
description: Pass additional warning flags to GHC.
default: False
manual: True
flag old-transformers
description: transformers <0.4 && transformers-compat >0.4
default: False
library
hs-source-dirs: src
exposed-modules:
Data.DHT
, Data.DHT.Core
, Data.DHT.Type.Encoding
, Data.DHT.Type.Exception
, Data.DHT.Type.Handle
, Data.DHT.Type.Hash
, Data.DHT.Type.Key
, Data.DHT.Type.NodeId
, Data.DHT.Type.Result
-- other-modules:
default-language: Haskell2010
other-extensions:
DeriveDataTypeable
, DeriveGeneric
, ExistentialQuantification
, LambdaCase
, NoImplicitPrelude
, RankNTypes
build-depends:
base >=4.7 && <5
, bytestring ==0.10.*
, data-default-class ==0.0.*
, exceptions >=0.7 && <0.9
, fail >=4.9
, hashable >=1.2.1 && <1.3
, text >=1.1 && <2
if impl(ghc <8)
-- Module "Data.Semigroup" is part of base >=4.9 (bundled with GHC 8.*);
-- for older versions of base we need dependency on semigroups package.
build-depends: semigroups >=0.18 && <1
if flag(old-transformers)
build-depends:
transformers <0.4
, transformers-compat >0.4
else
build-depends: transformers ==0.4.* || ==0.5.*
ghc-options: -Wall -fwarn-tabs
if flag(pedantic)
ghc-options:
-fwarn-implicit-prelude
-fwarn-missing-import-lists
-- -Werror
test-suite unit-tests
hs-source-dirs: src, test
type: exitcode-stdio-1.0
main-is: unit-tests.hs
other-modules:
TestCase
, TestCase.Data.DHT.Core
, TestCase.Data.DHT.Type.Result
-- {{{ Library modules ----------------------------------------------------
, Data.DHT
, Data.DHT.Core
, Data.DHT.Type.Encoding
, Data.DHT.Type.Exception
, Data.DHT.Type.Handle
, Data.DHT.Type.Key
, Data.DHT.Type.NodeId
, Data.DHT.Type.Result
-- }}} Library modules ----------------------------------------------------
default-language: Haskell2010
other-extensions:
DeriveDataTypeable
, DeriveGeneric
, ExistentialQuantification
, NoImplicitPrelude
, RankNTypes
build-depends:
-- {{{ Dependencies of library --------------------------------------------
base >=4.7 && <5
, bytestring ==0.10.*
, data-default-class ==0.0.*
, exceptions >=0.7 && <0.9
, fail >=4.9
, hashable >=1.2.1 && <1.3
, text >=1.1 && <2
-- }}} Dependencies of library --------------------------------------------
-- {{{ Test-suite dependencies --------------------------------------------
, HUnit >=1.2 && <2
-- ^ Same constraints as test-framework-hunit
, QuickCheck >=2.6 && <2.9
, test-framework >=0.8 && <1
-- ^ Same constraint as test-framework-skip, other packages that
-- depend on it have less restrictive bounds.
, test-framework-hunit >=0.2.6 && <1
-- ^ Lower versions have more restrictive bounds on test-framework.
, test-framework-quickcheck2 >=0.3
-- ^ There were changes in QuickCheck bounds in 0.2 branch and last one
-- on it had a compilation failure on Hackage.
-- }}} Test-suite dependencies --------------------------------------------
-- {{{ Conditional dependencies of library ----------------------------------
if impl(ghc <8)
-- Module "Data.Semigroup" is part of base >=4.9 (bundled with GHC 8.*);
-- for older versions of base we need dependency on semigroups package.
build-depends: semigroups >=0.18 && <1
if flag(old-transformers)
build-depends:
transformers <0.4
, transformers-compat >0.4
else
build-depends: transformers ==0.4.* || ==0.5.*
-- }}} Conditional dependencies of library ----------------------------------
ghc-options: -Wall -fwarn-tabs
if flag(pedantic)
ghc-options:
-fwarn-implicit-prelude
-fwarn-missing-import-lists
-- -Werror
source-repository head
type: git
location: git@github.com:FPBrno/dht-api.git