-
Notifications
You must be signed in to change notification settings - Fork 6
/
Z-IO.cabal
424 lines (392 loc) · 12.4 KB
/
Z-IO.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
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
cabal-version: 2.4
name: Z-IO
version: 2.0.0.0
synopsis: Simple and high performance IO toolkit for Haskell
description:
Simple and high performance IO toolkit for Haskell, including
file system, network, ipc and more!
license: BSD-3-Clause
license-file: LICENSE
author: Z.Haskell Contributors
maintainer: winterland1989@gmail.com
copyright: (c) Z.Haskell Contributors
category: Data
build-type: Simple
homepage: https://github.com/ZHaskell/Z-IO
bug-reports: https://github.com/ZHaskell/Z-IO/issues
extra-source-files:
ChangeLog.md
include/fs_shared.hs
LICENSE
README.md
third_party/cwalk/include/cwalk.h
third_party/libuv/include/uv/aix.h
third_party/libuv/include/uv/android-ifaddrs.h
third_party/libuv/include/uv/bsd.h
third_party/libuv/include/uv/darwin.h
third_party/libuv/include/uv/errno.h
third_party/libuv/include/uv/linux.h
third_party/libuv/include/uv/os390.h
third_party/libuv/include/uv/posix.h
third_party/libuv/include/uv/stdint-msvc2008.h
third_party/libuv/include/uv/sunos.h
third_party/libuv/include/uv/threadpool.h
third_party/libuv/include/uv/tree.h
third_party/libuv/include/uv/unix.h
third_party/libuv/include/uv/version.h
third_party/libuv/include/uv/win.h
third_party/libuv/include/uv.h
third_party/libuv/src/heap-inl.h
third_party/libuv/src/idna.h
third_party/libuv/src/queue.h
third_party/libuv/src/strscpy.h
third_party/libuv/src/unix/atomic-ops.h
third_party/libuv/src/unix/darwin-stub.h
third_party/libuv/src/unix/internal.h
third_party/libuv/src/unix/linux-syscalls.h
third_party/libuv/src/unix/os390-syscalls.h
third_party/libuv/src/unix/spinlock.h
third_party/libuv/src/uv-common.h
third_party/libuv/src/win/atomicops-inl.h
third_party/libuv/src/win/fs-fd-hash-inl.h
third_party/libuv/src/win/handle-inl.h
third_party/libuv/src/win/internal.h
third_party/libuv/src/win/req-inl.h
third_party/libuv/src/win/stream-inl.h
third_party/libuv/src/win/winapi.h
third_party/libuv/src/win/winsock.h
third_party/zlib/crc32.h
third_party/zlib/deflate.h
third_party/zlib/gzguts.h
third_party/zlib/inffast.h
third_party/zlib/inffixed.h
third_party/zlib/inflate.h
third_party/zlib/inftrees.h
third_party/zlib/trees.h
third_party/zlib/zutil.h
source-repository head
type: git
location: git://github.com/ZHaskell/z-io.git
flag demos
description: Build benchamrk/demonstration programs
default: False
flag no-pkg-config
description:
Don't use pkg-config to check for library dependences(on platforms other than linux, win and osx)
default: False
manual: True
library
exposed-modules:
Z.IO
Z.IO.BIO
Z.IO.BIO.Base
Z.IO.BIO.Concurrent
Z.IO.BIO.Zlib
Z.IO.Buffered
Z.IO.Environment
Z.IO.Exception
Z.IO.FileSystem
Z.IO.FileSystem.Base
Z.IO.FileSystem.FilePath
Z.IO.FileSystem.Threaded
Z.IO.FileSystem.Watch
Z.IO.Logger
Z.IO.LowResTimer
Z.IO.Network
Z.IO.Network.DNS
Z.IO.Network.IPC
Z.IO.Network.SocketAddr
Z.IO.Network.TCP
Z.IO.Network.UDP
Z.IO.Process
Z.IO.Resource
Z.IO.StdStream
Z.IO.StdStream.Ansi
Z.IO.Time
Z.IO.UV.Errno
Z.IO.UV.FFI
Z.IO.UV.FFI_Env
Z.IO.UV.Manager
Z.IO.UV.UVStream
other-modules: Z.IO.UV.Win
build-depends:
, base >=4.16 && <5.0
, containers ^>=0.6
, exceptions ^>=0.10
, foldl >= 1.3 && <2.0
, primitive >=0.7.3 && <0.8
, stm ^>=2.5
, time >=1.9 && <2.0
, unix-time >=0.4.7 && <0.5
, unordered-containers ^>=0.2
, Z-Data >=2.0 && <3.0
default-language: Haskell2010
default-extensions:
BangPatterns
BinaryLiterals
CApiFFI
CPP
ConstraintKinds
DataKinds
DefaultSignatures
DeriveAnyClass
DeriveGeneric
DerivingStrategies
ExistentialQuantification
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
KindSignatures
MagicHash
MultiParamTypeClasses
MultiWayIf
OverloadedStrings
PartialTypeSignatures
PatternSynonyms
PolyKinds
QuantifiedConstraints
QuasiQuotes
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
TypeFamilyDependencies
TypeOperators
UnboxedTuples
UnliftedFFITypes
ViewPatterns
build-tool-depends: hsc2hs:hsc2hs -any, hspec-discover:hspec-discover -any
ghc-options: -Wall
include-dirs: include third_party/zlib third_party/cwalk/include
includes:
hs_cwalk.h
hs_uv.h
zconf.h
zlib.h
install-includes:
hs_cwalk.h
hs_uv.h
zconf.h
zlib.h
cc-options: -D_FILE_OFFSET_BITS=64
c-sources:
cbits/hs_cwalk.c
cbits/hs_uv_base.c
cbits/hs_uv_dns.c
cbits/hs_uv_file.c
cbits/hs_uv_fs_event.c
cbits/hs_uv_process.c
cbits/hs_uv_stream.c
cbits/hs_uv_udp.c
cbits/hs_zlib.c
third_party/cwalk/src/cwalk.c
third_party/libuv/src/fs-poll.c
third_party/libuv/src/idna.c
third_party/libuv/src/inet.c
third_party/libuv/src/random.c
third_party/libuv/src/strscpy.c
third_party/libuv/src/threadpool.c
third_party/libuv/src/timer.c
third_party/libuv/src/uv-common.c
third_party/libuv/src/uv-data-getter-setters.c
third_party/libuv/src/version.c
third_party/zlib/adler32.c
third_party/zlib/compress.c
third_party/zlib/crc32.c
third_party/zlib/deflate.c
third_party/zlib/infback.c
third_party/zlib/inffast.c
third_party/zlib/inflate.c
third_party/zlib/inftrees.c
third_party/zlib/trees.c
third_party/zlib/uncompr.c
third_party/zlib/zutil.c
-- Note: The c-sources list is taken from libuv's Makefile.mingw, needs to be
-- updated when we bump up libuv's version.
-- header files are ignored here, otherwise will confuse linker
if os(windows)
c-sources:
third_party/libuv/src/win/async.c
third_party/libuv/src/win/core.c
third_party/libuv/src/win/detect-wakeup.c
third_party/libuv/src/win/dl.c
third_party/libuv/src/win/error.c
third_party/libuv/src/win/fs-event.c
third_party/libuv/src/win/fs.c
third_party/libuv/src/win/getaddrinfo.c
third_party/libuv/src/win/getnameinfo.c
third_party/libuv/src/win/handle.c
third_party/libuv/src/win/loop-watcher.c
third_party/libuv/src/win/pipe.c
third_party/libuv/src/win/poll.c
third_party/libuv/src/win/process-stdio.c
third_party/libuv/src/win/process.c
third_party/libuv/src/win/signal.c
third_party/libuv/src/win/stream.c
third_party/libuv/src/win/tcp.c
third_party/libuv/src/win/thread.c
third_party/libuv/src/win/tty.c
third_party/libuv/src/win/udp.c
third_party/libuv/src/win/util.c
third_party/libuv/src/win/winapi.c
third_party/libuv/src/win/winsock.c
cc-options:
-Wall -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600
cpp-options: -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600
include-dirs: third_party/libuv/include third_party/libuv/src
-- The C runtime dependencies are imposed by libuv.
extra-libraries:
psapi
Iphlpapi
userenv
Ws2_32
else
if os(linux)
c-sources:
third_party/libuv/src/fs-poll.c
third_party/libuv/src/idna.c
third_party/libuv/src/inet.c
third_party/libuv/src/random.c
third_party/libuv/src/strscpy.c
third_party/libuv/src/threadpool.c
third_party/libuv/src/timer.c
third_party/libuv/src/unix/async.c
third_party/libuv/src/unix/core.c
third_party/libuv/src/unix/dl.c
third_party/libuv/src/unix/epoll.c
third_party/libuv/src/unix/fs.c
third_party/libuv/src/unix/getaddrinfo.c
third_party/libuv/src/unix/getnameinfo.c
third_party/libuv/src/unix/linux-core.c
third_party/libuv/src/unix/linux-inotify.c
third_party/libuv/src/unix/linux-syscalls.c
third_party/libuv/src/unix/loop-watcher.c
third_party/libuv/src/unix/loop.c
third_party/libuv/src/unix/pipe.c
third_party/libuv/src/unix/poll.c
third_party/libuv/src/unix/process.c
third_party/libuv/src/unix/procfs-exepath.c
third_party/libuv/src/unix/proctitle.c
third_party/libuv/src/unix/random-devurandom.c
third_party/libuv/src/unix/random-getrandom.c
third_party/libuv/src/unix/random-sysctl-linux.c
third_party/libuv/src/unix/signal.c
third_party/libuv/src/unix/stream.c
third_party/libuv/src/unix/tcp.c
third_party/libuv/src/unix/thread.c
third_party/libuv/src/unix/tty.c
third_party/libuv/src/unix/udp.c
third_party/libuv/src/uv-common.c
third_party/libuv/src/uv-data-getter-setters.c
third_party/libuv/src/version.c
include-dirs:
third_party/libuv/include third_party/libuv/src/unix
third_party/libuv/src
cc-options: -Wall -D_GNU_SOURCE -D_POSIX_C_SOURCE=200112
else
if os(osx)
c-sources:
third_party/libuv/src/fs-poll.c
third_party/libuv/src/idna.c
third_party/libuv/src/inet.c
third_party/libuv/src/random.c
third_party/libuv/src/strscpy.c
third_party/libuv/src/threadpool.c
third_party/libuv/src/timer.c
third_party/libuv/src/unix/async.c
third_party/libuv/src/unix/bsd-ifaddrs.c
third_party/libuv/src/unix/core.c
third_party/libuv/src/unix/darwin-proctitle.c
third_party/libuv/src/unix/darwin.c
third_party/libuv/src/unix/dl.c
third_party/libuv/src/unix/fs.c
third_party/libuv/src/unix/fsevents.c
third_party/libuv/src/unix/getaddrinfo.c
third_party/libuv/src/unix/getnameinfo.c
third_party/libuv/src/unix/kqueue.c
third_party/libuv/src/unix/loop-watcher.c
third_party/libuv/src/unix/loop.c
third_party/libuv/src/unix/pipe.c
third_party/libuv/src/unix/poll.c
third_party/libuv/src/unix/process.c
third_party/libuv/src/unix/proctitle.c
third_party/libuv/src/unix/random-devurandom.c
third_party/libuv/src/unix/random-getentropy.c
third_party/libuv/src/unix/signal.c
third_party/libuv/src/unix/stream.c
third_party/libuv/src/unix/tcp.c
third_party/libuv/src/unix/thread.c
third_party/libuv/src/unix/tty.c
third_party/libuv/src/unix/udp.c
third_party/libuv/src/uv-common.c
third_party/libuv/src/uv-data-getter-setters.c
third_party/libuv/src/version.c
include-dirs:
third_party/libuv/include third_party/libuv/src/unix
third_party/libuv/src
cc-options: -Wall -D_DARWIN_UNLIMITED_SELECT=1 -D_DARWIN_USE_64_BIT_INODE=1
else
if flag(no-pkg-config)
extra-libraries: uv
else
pkgconfig-depends: libuv ==1.32 || >1.32
test-suite Z-IO-Test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test/
build-depends:
, base
, bytestring
, hashable
, hspec >=2.5.4
, HUnit
, primitive
, QuickCheck >=2.10
, quickcheck-instances
, scientific
, Z-Data
, Z-IO
, zlib
other-modules:
Z.IO.BIO.ConcurrentSpec
Z.IO.BIO.ZlibSpec
Z.IO.BIO.BaseSpec
Z.IO.FileSystem.ThreadedSpec
Z.IO.FileSystemSpec
Z.IO.LowResTimerSpec
Z.IO.Network.IPCSpec
Z.IO.Network.TCPSpec
Z.IO.Network.UDPSpec
Z.IO.ProcessSpec
Z.IO.ResourceSpec
ghc-options: -threaded
default-language: Haskell2010
build-tool-depends: hspec-discover:hspec-discover ==2.*
benchmark z-io-gettime
type: exitcode-stdio-1.0
main-is: GetTime.hs
hs-source-dirs: bench/
build-depends:
, base
, criterion ^>=1.5
, time ^>=1.9
, Z-Data
, Z-IO
default-language: Haskell2010
if !flag(demos)
buildable: False
executable z-io-http-bench
main-is: Http.hs
hs-source-dirs: bench/
build-depends:
, base
, Z-Data
, Z-IO
default-language: Haskell2010
ghc-options: -threaded -rtsopts -with-rtsopts=-N
if !flag(demos)
buildable: False