summaryrefslogtreecommitdiff
path: root/http-conduit.cabal
blob: f2ae8b3c8b04046f43246ed89bbd94eb93e8d21d (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name:            http-conduit
version:         1.4.1.4
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.4
                 , failure               >= 0.1
                 , resourcet             >= 0.3     && < 0.4
                 , conduit               >= 0.4.1   && < 0.5
                 , zlib-conduit          >= 0.4     && < 0.5
                 , blaze-builder-conduit >= 0.4     && < 0.5
                 , attoparsec-conduit    >= 0.4     && < 0.5
                 , 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.9.3   && < 0.10
                 , tls-extra             >= 0.4.5   && < 0.5
                 , monad-control         >= 0.3     && < 0.4
                 , containers            >= 0.2
                 , certificate           >= 1.2     && < 1.3
                 , case-insensitive      >= 0.2
                 , base64-bytestring     >= 0.1     && < 0.2
                 , asn1-data             >= 0.5.1   && < 0.7
                 , data-default          >= 0.3     && < 0.5
                 , text
                 , transformers-base     >= 0.4     && < 0.5
                 , lifted-base           >= 0.1     && < 0.2
                 , socks                 >= 0.4     && < 0.5
                 , time
                 , cookie                >= 0.4     && < 0.5
                 , void                  >= 0.5.5   && < 0.6
                 , regex-compat
                 , mtl
    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
                     Network.HTTP.Conduit.Browser
                     Network.HTTP.Conduit.Internal
    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
                     Network.HTTP.Conduit.Cookies
    ghc-options:     -Wall

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

    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 >= 1.2.1
                 , socks
                 , http-types
                 , cookie
                 , regex-compat
                 , network-conduit
                 , resourcet
                 , void

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