@@ -91,10 +91,6 @@ Flag warp-tests
9191 default : False
9292 manual : True
9393
94- flag network-uri
95- description : Get Network.URI from the network-uri package
96- default : True
97-
9894Library
9995 Exposed-modules :
10096 Network.BufferType,
@@ -114,7 +110,7 @@ Library
114110 Other-modules :
115111 Network.HTTP.Base64,
116112 Network.HTTP.MD5Aux,
117- Network.HTTP.Utils
113+ Network.HTTP.Utils,
118114 Paths_HTTP
119115 GHC-options : -fwarn-missing-signatures -Wall
120116
@@ -131,16 +127,12 @@ Library
131127 -- The following dependencies are refined by flags, but they should
132128 -- still be mentioned here on the top-level.
133129 , mtl >= 2.0.0.0 && < 2.4
134- , network >= 2.4 && < 3.3
130+ , network >= 2.6 && < 3.3
131+ , network-uri >= 2.6 && < 2.7
135132
136133 default-language : Haskell98
137134 default-extensions : FlexibleInstances
138135
139- if flag(network-uri)
140- Build-depends : network-uri == 2.6. *, network >= 2.6
141- else
142- Build-depends : network < 2.6
143-
144136 if flag(warn-as-error)
145137 ghc-options : -Werror
146138
@@ -167,6 +159,7 @@ Test-Suite test
167159 , bytestring
168160 , mtl
169161 , network
162+ , network-uri
170163 -- extra dependencies
171164 , deepseq >= 1.3.0.0 && < 1.6
172165 , httpd-shed >= 0.4 && < 0.5
@@ -176,11 +169,6 @@ Test-Suite test
176169 , test-framework >= 0.2.0 && < 0.9
177170 , test-framework-hunit >= 0.3.0 && < 0.4
178171
179- if flag(network-uri)
180- Build-depends : network-uri == 2.6. *, network >= 2.6
181- else
182- Build-depends : network < 2.6
183-
184172 if flag(warp-tests)
185173 CPP-Options : -DWARP_TESTS
186174 build-depends :
0 commit comments