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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
|
name: dht-client
version: 0.0.0.4
license: BSD3
license-file: LICENSE
author: Joe Crayne
maintainer: Joe Crayne
copyright: (c) 2017 Joe Crayne, (c) 2013, Sam Truzjan
category: Network
build-type: Custom
cabal-version: >= 1.10
tested-with: GHC == 8.0.2, GHC == 7.10.3
homepage: https://github.com/cobit/bittorrent
bug-reports: https://github.com/cobit/bittorrent/issues
synopsis: BitTorrent DHT protocol implementation.
description:
A library for making Haskell bittorrent applications easy.
.
For more information see:
<https://github.com/cobit/bittorrent/blob/master/README.md>
extra-source-files: res/dapper-dvd-amd64.iso.torrent
res/pkg.torrent
README.md
ChangeLog
cbits/*.h
source-repository head
type: git
location: git://github.com/cobit/bittorrent.git
source-repository this
type: git
location: git://github.com/cobit/bittorrent.git
branch: master
tag: v0.0.0.4
flag network-uri
description: Use network-uri package.
default: True
flag builder
description: Use older bytestring package and bytestring-builder.
default: False
-- flag aeson
-- description: Use aeson for pretty-printing bencoded data.
-- default: True
flag thread-debug
description: Add instrumentation to threads.
default: True
library
default-language: Haskell2010
default-extensions: PatternGuards
, OverloadedStrings
, RecordWildCards
hs-source-dirs: src, cryptonite-backport, .
exposed-modules: Network.SocketLike
Data.Digest.CRC32C
Data.Bits.ByteString
Data.Wrapper.PSQ
Data.Wrapper.PSQInt
Data.MinMaxPSQ
Network.Address
Network.Kademlia.Routing
Data.Torrent
Network.BitTorrent.DHT.ContactInfo
Network.BitTorrent.DHT.Token
Network.Kademlia.Search
Network.QueryResponse
Network.StreamServer
Data.BEncode.Pretty
Control.Concurrent.Tasks
Network.Kademlia
Network.BitTorrent.MainlineDHT
System.Global6
Data.Word64Map
OnionRouter
Network.Tox
Network.Tox.Transport
Network.Tox.Crypto.Transport
Network.Tox.Onion.Handlers
Network.Tox.Onion.Transport
Network.Tox.DHT.Handlers
Network.Tox.DHT.Transport
Network.Tox.NodeId
Network.UPNP
Control.TriadCommittee
Crypto.Tox
Text.XXD
Roster
build-depends: base
, containers
, array
, hashable
, iproute
, stm
, base16-bytestring
, base32-bytestring
, base64-bytestring
, psqueues
, reflection
, deepseq
, text
, filepath
, directory
, bencoding
, contravariant
, cryptonite
, memory
, time
, random
, entropy
, cpu
, cereal
, http-types
, process
, split
, pretty
, convertible
, data-default
, bifunctors
, lens
, lifted-async
, lifted-base
, monad-control
, transformers-base
, mtl
, ghc-prim
if impl(ghc < 8)
Build-depends: transformers
if flag(network-uri)
Build-depends: network >= 2.6
, network-uri >= 2.6
else
Build-depends: network >= 2.4 && < 2.6
other-modules: Paths_dht_client
Crypto.Cipher.Salsa
Crypto.Cipher.XSalsa
Crypto.ECC.Class
Crypto.ECC.Simple.Prim
Crypto.ECC.Simple.Types
Crypto.Error.Types
Crypto.Internal.ByteArray
Crypto.Internal.Compat
Crypto.Internal.DeepSeq
Crypto.Internal.Imports
Crypto.PubKey.Curve25519
C-sources: cbits/cryptonite_xsalsa.c, cbits/cryptonite_salsa.c
-- if flag(aeson)
build-depends: aeson, aeson-pretty, unordered-containers, vector
cpp-options: -DBENCODE_AESON
if flag(thread-debug)
exposed-modules: Control.Concurrent.Lifted.Instrument
Control.Concurrent.Async.Lifted.Instrument
cpp-options: -DTHREAD_DEBUG
if flag(builder)
build-depends: bytestring >= 0.9, bytestring-builder
else
build-depends: bytestring >= 0.10
if impl(ghc < 7.6)
build-depends: ghc-prim
ghc-options: -Wall -fdefer-typed-holes
ghc-prof-options:
executable dht
hs-source-dirs: examples
main-is: dht.hs
default-language: Haskell2010
build-depends: base, haskeline, network, bytestring, transformers
executable dhtd
hs-source-dirs: examples
main-is: dhtd.hs
default-language: Haskell2010
build-depends: base, network, bytestring, hashable, deepseq
, aeson
, pretty
, dht-client
, unix
, containers
, stm
, cereal
, bencoding
, unordered-containers
, vector
, text
if flag(thread-debug)
build-depends: time
cpp-options: -DTHREAD_DEBUG
ghc-options: -rtsopts
|