Skip to content

Commit 0a2fca2

Browse files
authored
Merge pull request #163 from Kleidukos/master
Remove dependency on old network version
2 parents 482194f + e640e02 commit 0a2fca2

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

HTTP.cabal

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Cabal-Version: >= 1.10
1+
Cabal-Version: 3.0
22
Name: HTTP
33
Version: 4000.4.1
44
x-revision: 5
55
Build-type: Simple
6-
License: BSD3
6+
License: BSD-3-Clause
77
License-file: LICENSE
88
Author: Warrick Gray <[email protected]>
99
Maintainer: Ganesh Sittampalam <[email protected]>
@@ -91,11 +91,8 @@ 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-
9894
Library
95+
Autogen-modules: Paths_HTTP
9996
Exposed-modules:
10097
Network.BufferType,
10198
Network.Stream,
@@ -114,7 +111,7 @@ Library
114111
Other-modules:
115112
Network.HTTP.Base64,
116113
Network.HTTP.MD5Aux,
117-
Network.HTTP.Utils
114+
Network.HTTP.Utils,
118115
Paths_HTTP
119116
GHC-options: -fwarn-missing-signatures -Wall
120117

@@ -131,16 +128,12 @@ Library
131128
-- The following dependencies are refined by flags, but they should
132129
-- still be mentioned here on the top-level.
133130
, mtl >= 2.0.0.0 && < 2.4
134-
, network >= 2.4 && < 3.3
131+
, network >= 2.6 && < 3.3
132+
, network-uri >= 2.6 && < 2.7
135133

136134
default-language: Haskell98
137135
default-extensions: FlexibleInstances
138136

139-
if flag(network-uri)
140-
Build-depends: network-uri == 2.6.*, network >= 2.6
141-
else
142-
Build-depends: network < 2.6
143-
144137
if flag(warn-as-error)
145138
ghc-options: -Werror
146139

@@ -167,6 +160,7 @@ Test-Suite test
167160
, bytestring
168161
, mtl
169162
, network
163+
, network-uri
170164
-- extra dependencies
171165
, deepseq >= 1.3.0.0 && < 1.6
172166
, httpd-shed >= 0.4 && < 0.5
@@ -176,11 +170,6 @@ Test-Suite test
176170
, test-framework >= 0.2.0 && < 0.9
177171
, test-framework-hunit >= 0.3.0 && < 0.4
178172

179-
if flag(network-uri)
180-
Build-depends: network-uri == 2.6.*, network >= 2.6
181-
else
182-
Build-depends: network < 2.6
183-
184173
if flag(warp-tests)
185174
CPP-Options: -DWARP_TESTS
186175
build-depends:

0 commit comments

Comments
 (0)