on wai-extra/2.1.1.3 help sign in
typeable/wai/warp/warp.cabal
175 lines 7.1 kB history raw
1Name: warp
2Version: 2.1.5.2
3Synopsis: A fast, light-weight web server for WAI applications.
4License: MIT
5License-file: LICENSE
6Author: Michael Snoyman, Kazu Yamamoto, Matt Brown
7Maintainer: michael@snoyman.com
8Homepage: http://github.com/yesodweb/wai
9Category: Web, Yesod
10Build-Type: Simple
11Cabal-Version: >=1.8
12Stability: Stable
13Description:
14 The premier WAI handler. For more information, see <http://steve.vinoski.net/blog/2011/05/01/warp-a-haskell-web-server/>.
15 .
16 Changelog
17 .
18 [2.1.0] The @onOpen@ and @onClose@ settings now provide the @SockAddr@ of the client, and @onOpen@ can return a @Bool@ which will close the connection. The @responseRaw@ response has been added, which provides a more elegant way to handle WebSockets than the previous @settingsIntercept@. The old settings accessors have been deprecated in favor of new setters, which will allow settings changes to be made in the future without breaking backwards compatibility.
19 .
20 [2.0.0] ResourceT is not used anymore. Request and Response is now abstract data types. To use their constructors, Internal module should be imported.
21 .
22 [1.3.9] Support for byte range requests.
23 .
24 [1.3.7] Sockets now have FD_CLOEXEC set on them. This behavior is more secure, and the change should not affect the vast majority of use cases. However, it appeared that this is buggy and is fixed in 2.0.0.
25extra-source-files: attic/hex
27Flag network-bytestring
28 Default: False
30Flag allow-sendfilefd
31 Description: Allow use of sendfileFd (not available on GNU/kFreeBSD)
32 Default: True
34Flag warp-debug
35 Description: print debug output. not suitable for production
36 Default: False
38Library
39 Build-Depends: base >= 3 && < 5
40 , array
41 , blaze-builder >= 0.3.3 && < 0.4
42 , blaze-builder-conduit >= 0.5 && < 1.2
43 , bytestring >= 0.9.1.4
44 , case-insensitive >= 0.2
45 , conduit >= 0.5 && < 1.2
46 , conduit-extra
47 , ghc-prim
48 , http-types >= 0.7
49 , lifted-base >= 0.1
50 , network-conduit >= 0.5 && < 1.2
51 , simple-sendfile >= 0.2.7 && < 0.3
52 , transformers >= 0.2.2
53 , unix-compat >= 0.2
54 , void
55 , wai >= 2.1 && < 2.2
56 , text
57 , streaming-commons
58 if flag(network-bytestring)
59 Build-Depends: network >= 2.2.1.5 && < 2.2.3
60 , network-bytestring >= 0.1.3 && < 0.1.4
61 else
62 Build-Depends: network >= 2.3
63 Exposed-modules: Network.Wai.Handler.Warp
64 Network.Wai.Handler.Warp.Buffer
65 Network.Wai.Handler.Warp.Timeout
66 Network.Wai.Handler.Warp.Internal
67 Other-modules: Network.Wai.Handler.Warp.Conduit
68 Network.Wai.Handler.Warp.Date
69 Network.Wai.Handler.Warp.FdCache
70 Network.Wai.Handler.Warp.Header
71 Network.Wai.Handler.Warp.IO
72 Network.Wai.Handler.Warp.IORef
73 Network.Wai.Handler.Warp.ReadInt
74 Network.Wai.Handler.Warp.Recv
75 Network.Wai.Handler.Warp.Request
76 Network.Wai.Handler.Warp.RequestHeader
77 Network.Wai.Handler.Warp.Response
78 Network.Wai.Handler.Warp.ResponseHeader
79 Network.Wai.Handler.Warp.Run
80 Network.Wai.Handler.Warp.SendFile
81 Network.Wai.Handler.Warp.Settings
82 Network.Wai.Handler.Warp.Thread
83 Network.Wai.Handler.Warp.Types
84 Network.Wai.Handler.Warp.Windows
85 Paths_warp
86 Ghc-Options: -Wall
88 if flag(warp-debug)
89 Cpp-Options: -DWARP_DEBUG
90 if (os(linux) || os(freebsd) || os(darwin)) && flag(allow-sendfilefd)
91 Cpp-Options: -DSENDFILEFD
92 Build-Depends: hashable
93 Other-modules: Network.Wai.Handler.Warp.MultiMap
94 if os(windows)
95 Cpp-Options: -DWINDOWS
96 Build-Depends: time
97 , old-locale
98 else
99 Build-Depends: unix
100 , http-date
102Test-Suite doctest
103 Type: exitcode-stdio-1.0
104 HS-Source-Dirs: test
105 Ghc-Options: -threaded -Wall
106 Main-Is: doctests.hs
107 Build-Depends: base
108 , doctest >= 0.9.3
110Test-Suite spec
111 Main-Is: Spec.hs
112 Other-modules: ConduitSpec
113 ExceptionSpec
114 FdCacheSpec
115 MultiMapSpec
116 ReadIntSpec
117 RequestSpec
118 ResponseHeaderSpec
119 ResponseSpec
120 RunSpec
121 ThreadSpec
122 Hs-Source-Dirs: test, .
123 Type: exitcode-stdio-1.0
125 Ghc-Options: -Wall
126 Build-Depends: base >= 4 && < 5
127 , array
128 , blaze-builder >= 0.3.3 && < 0.4
129 , blaze-builder-conduit >= 0.5
130 , bytestring >= 0.9.1.4
131 , case-insensitive >= 0.2
132 , conduit >= 0.5
133 , ghc-prim
134 , HTTP
135 , http-types >= 0.8.4
136 , lifted-base >= 0.1
137 , network-conduit
138 , simple-sendfile >= 0.2.4 && < 0.3
139 , transformers >= 0.2.2
140 , unix-compat >= 0.2
141 , void
142 , wai
143 , network
144 , HUnit
145 , QuickCheck
146 , hspec >= 1.3
147 , time
148 , old-locale
149 , text
150 , conduit-extra
151 , streaming-commons >= 0.1.1
152 , async
154 if (os(linux) || os(freebsd) || os(darwin)) && flag(allow-sendfilefd)
155 Cpp-Options: -DSENDFILEFD
156 Build-Depends: unix
157 , hashable
158 , http-date
159 if os(windows)
160 Cpp-Options: -DWINDOWS
162Benchmark parser
163 Type: exitcode-stdio-1.0
164 Main-Is: Parser.hs
165 HS-Source-Dirs: bench .
166 Build-Depends: base
167 , bytestring
168 , criterion
169 , http-types
170 , network
171 , network
173Source-Repository head
174 Type: git
175 Location: git://github.com/yesodweb/wai.git