summaryrefslogtreecommitdiff
path: root/http-conduit.cabal
blob: 8ec0f06568dad0adb29afd3a61814a2099835f44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name:            http-conduit
version:         1.2.3
license:         BSD3
license-file:    LICENSE
author:          Michael Snoyman <michael@snoyman.com>
maintainer:      Michael Snoyman <michael@snoyman.com>
synopsis:        HTTP client package with conduit interface and HTTPS support.
description:
    This package uses attoparsec for parsing the actual contents of the HTTP connection. It also provides higher-level functions which allow you to avoid direct usage of conduits. See <http://www.yesodweb.com/book/http-conduit> for more information.
category:        Web, Conduit
stability:       Stable
cabal-version:   >= 1.8
build-type:      Simple
homepage:        http://www.yesodweb.com/book/http-conduit
extra-source-files: test/main.hs

flag network-bytestring
  default: False

library
    build-depends: base                  >= 4       && < 5
                 , bytestring            >= 0.9.1.4 && < 0.10
                 , transformers          >= 0.2     && < 0.3
                 , failure               >= 0.1
                 , conduit               >= 0.2
                 , zlib-conduit          >= 0.2     && < 0.3
                 , blaze-builder-conduit >= 0.2     && < 0.3
                 , attoparsec-conduit    >= 0.2     && < 0.3
                 , attoparsec            >= 0.8.0.2 && < 0.11
                 , utf8-string           >= 0.3.4   && < 0.4
                 , blaze-builder         >= 0.2.1   && < 0.4
                 , http-types            >= 0.6     && < 0.7
                 , cprng-aes             >= 0.2     && < 0.3
                 , tls                   >= 0.8.1   && < 0.9
                 , tls-extra             >= 0.4     && < 0.5
                 , monad-control         >= 0.3     && < 0.4
                 , containers            >= 0.2
                 , certificate           >= 0.7     && < 1.1
                 , case-insensitive      >= 0.2
                 , base64-bytestring     >= 0.1     && < 0.2
                 , asn1-data             >= 0.5.1   && < 0.7
                 , data-default          >= 0.3     && < 0.4
                 , text
                 , transformers-base     >= 0.4     && < 0.5
                 , lifted-base           >= 0.1     && < 0.2
                 , socks                 >= 0.4     && < 0.5
                 , time
    if flag(network-bytestring)
        build-depends: network               >= 2.2.1   && < 2.2.3
                     , network-bytestring    >= 0.1.3   && < 0.1.4
    else
        build-depends: network               >= 2.3     && < 2.4
    exposed-modules: Network.HTTP.Conduit
    other-modules:   Network.HTTP.Conduit.Parser
                     Network.HTTP.Conduit.ConnInfo
                     Network.HTTP.Conduit.Request
                     Network.HTTP.Conduit.Util
                     Network.HTTP.Conduit.Manager
                     Network.HTTP.Conduit.Chunk
                     Network.HTTP.Conduit.Response
    ghc-options:     -Wall

test-suite test
    main-is: test/main.hs
    type: exitcode-stdio-1.0

    ghc-options:   -Wall
    cpp-options:   -DDEBUG
    build-depends: base >= 4 && < 5
                 , HUnit
                 , hspec
                 , bytestring
                 , transformers
                 , failure
                 , conduit
                 , zlib-conduit
                 , blaze-builder-conduit
                 , attoparsec-conduit
                 , attoparsec
                 , utf8-string
                 , blaze-builder
                 , http-types
                 , cprng-aes
                 , tls
                 , tls-extra
                 , monad-control
                 , containers
                 , certificate
                 , case-insensitive
                 , base64-bytestring
                 , asn1-data
                 , data-default
                 , text
                 , transformers-base
                 , lifted-base
                 , time
                 , network
                 , wai
                 , warp
                 , socks
                 , http-types

source-repository head
  type:     git
  location: git://github.com/snoyberg/http-conduit.git