Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 7 additions & 18 deletions HTTP.cabal
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Cabal-Version: >= 1.10
Cabal-Version: 3.0
Name: HTTP
Version: 4000.4.1
x-revision: 5
Build-type: Simple
License: BSD3
License: BSD-3-Clause
License-file: LICENSE
Author: Warrick Gray <[email protected]>
Maintainer: Ganesh Sittampalam <[email protected]>
Expand Down Expand Up @@ -91,11 +91,8 @@ Flag warp-tests
default: False
manual: True

flag network-uri
description: Get Network.URI from the network-uri package
default: True

Library
Autogen-modules: Paths_HTTP
Exposed-modules:
Network.BufferType,
Network.Stream,
Expand All @@ -114,7 +111,7 @@ Library
Other-modules:
Network.HTTP.Base64,
Network.HTTP.MD5Aux,
Network.HTTP.Utils
Network.HTTP.Utils,
Paths_HTTP
GHC-options: -fwarn-missing-signatures -Wall

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

default-language: Haskell98
default-extensions: FlexibleInstances

if flag(network-uri)
Build-depends: network-uri == 2.6.*, network >= 2.6
else
Build-depends: network < 2.6

if flag(warn-as-error)
ghc-options: -Werror

Expand All @@ -167,6 +160,7 @@ Test-Suite test
, bytestring
, mtl
, network
, network-uri
-- extra dependencies
, deepseq >= 1.3.0.0 && < 1.6
, httpd-shed >= 0.4 && < 0.5
Expand All @@ -176,11 +170,6 @@ Test-Suite test
, test-framework >= 0.2.0 && < 0.9
, test-framework-hunit >= 0.3.0 && < 0.4

if flag(network-uri)
Build-depends: network-uri == 2.6.*, network >= 2.6
else
Build-depends: network < 2.6

if flag(warp-tests)
CPP-Options: -DWARP_TESTS
build-depends:
Expand Down