/
simple-sendfile.cabal
66 lines (63 loc) · 2.27 KB
/
simple-sendfile.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
Name: simple-sendfile
Version: 0.2.10
Author: Kazu Yamamoto <kazu@iij.ad.jp>
Maintainer: Kazu Yamamoto <kazu@iij.ad.jp>
License: BSD3
License-File: LICENSE
Synopsis: Cross platform library for the sendfile system call
Description: Cross platform library for the sendfile system call.
This library tries to call minimum system calls which
are the bottleneck of web servers.
Category: Network
Cabal-Version: >= 1.10
Build-Type: Simple
Library
Default-Language: Haskell2010
GHC-Options: -Wall
Exposed-Modules: Network.Sendfile
Other-Modules: Network.Sendfile.Types
Build-Depends: base >= 4 && < 5
, network
, bytestring
-- NetBSD and OpenBSD don't have sendfile
if os(freebsd)
CPP-Options: -DOS_BSD
Other-Modules: Network.Sendfile.BSD
Network.Sendfile.IOVec
Build-Depends: unix
else
if os(darwin)
CPP-Options: -DOS_MacOS
Other-Modules: Network.Sendfile.BSD
Network.Sendfile.IOVec
Build-Depends: unix
else
if os(linux)
CPP-Options: -DOS_Linux
Other-Modules: Network.Sendfile.Linux
Build-Depends: unix
else
Other-Modules: Network.Sendfile.Fallback
Build-Depends: conduit >= 0.4.1 && < 0.6
, transformers >= 0.2.2 && < 0.4
Test-Suite spec
Type: exitcode-stdio-1.0
Default-Language: Haskell2010
Hs-Source-Dirs: test
Main-Is: Spec.hs
GHC-Options: -Wall
Other-Modules: SendfileSpec
Build-Depends: base
, HUnit
, bytestring
, conduit
, directory
, hspec >= 1.3
, network
, network-conduit
, process
, simple-sendfile
, unix
Source-Repository head
Type: git
Location: git://github.com/kazu-yamamoto/simple-sendfile