@@ -201,6 +201,10 @@ Flag make-pandoc-man-pages
201201 Description: Build program to regenerate pandoc man pages from README.
202202 Default: False
203203
204+Flag network-uri
205+ Description: Get Network.URI from the network-uri package
206+ Default: True
207+
204208Library
205209 Build-Depends: base >= 4.2 && <5,
206210 syb >= 0.1 && < 0.5,
@@ -209,7 +213,6 @@ Library
209213 array >= 0.3 && < 0.6,
210214 parsec >= 3.1 && < 3.2,
211215 mtl >= 1.1 && < 2.3,
212− network >= 2 && < 2.6,
213216 filepath >= 1.1 && < 1.4,
214217 process >= 1 && < 1.3,
215218 directory >= 1 && < 1.3,
@@ -243,6 +246,10 @@ Library
243246 old-time,
244247 deepseq-generics >= 0.1 && < 0.2,
245248 JuicyPixels >= 3.1.6.1 && < 3.2
249+ if flag(network-uri)
250+ Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
251+ else
252+ Build-Depends: network >= 2 && < 2.6
246253 if flag(https)
247254 Build-Depends: http-client >= 0.3.2 && < 0.4,
248255 http-client-tls >= 0.2 && < 0.3,
@@ -339,7 +346,6 @@ Executable pandoc
339346 base >= 4.2 && <5,
340347 directory >= 1 && < 1.3,
341348 filepath >= 1.1 && < 1.4,
342− network >= 2 && < 2.6,
343349 text >= 0.11 && < 1.2,
344350 bytestring >= 0.9 && < 0.11,
345351 extensible-exceptions >= 0.1 && < 0.2,
@@ -348,6 +354,10 @@ Executable pandoc
348354 yaml >= 0.8.8.2 && < 0.9,
349355 containers >= 0.1 && < 0.6,
350356 HTTP >= 4000.0.5 && < 4000.3
357+ if flag(network-uri)
358+ Build-Depends: network-uri >= 2.6 && < 2.7
359+ else
360+ Build-Depends: network >= 2 && < 2.6
351361 Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
352362 Ghc-Prof-Options: -auto-all -caf-all -rtsopts -with-rtsopts=-K16m
353363 if os(windows)