on 21c052d help sign in
typeable/req/req.cabal
97 lines 4.1 kB history raw
1--
2-- Cabal configuration for ‘req’ package.
3--
4-- Copyright © 2016 Mark Karpov <markkarpov@openmailbox.org>
5--
6-- Redistribution and use in source and binary forms, with or without
7-- modification, are permitted provided that the following conditions are
8-- met:
9--
10-- * Redistributions of source code must retain the above copyright notice,
11-- this list of conditions and the following disclaimer.
12--
13-- * Redistributions in binary form must reproduce the above copyright
14-- notice, this list of conditions and the following disclaimer in the
15-- documentation and/or other materials provided with the distribution.
16--
17-- * Neither the name Mark Karpov nor the names of contributors may be used
18-- to endorse or promote products derived from this software without
19-- specific prior written permission.
20--
21-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS “AS IS” AND ANY
22-- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23-- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24-- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
25-- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29-- STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30-- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31-- POSSIBILITY OF SUCH DAMAGE.
33name: req
34version: 0.1.0
35cabal-version: >= 1.10
36license: BSD3
37license-file: LICENSE.md
38author: Mark Karpov <markkarpov@openmailbox.org>
39maintainer: Mark Karpov <markkarpov@openmailbox.org>
40homepage: https://github.com/mrkkrp/req
41bug-reports: https://github.com/mrkkrp/req/issues
42category: Network, Web
43synopsis: Easy-to-use, type-safe, expandable, high-level HTTP library
44build-type: Simple
45description: Easy-to-use, type-safe, expandable, high-level HTTP library.
46extra-doc-files: CHANGELOG.md
47 , README.md
49source-repository head
50 type: git
51 location: https://github.com/mrkkrp/req.git
53flag dev
54 description: Turn on development settings.
55 manual: True
56 default: False
58library
59 build-depends: aeson >= 0.11 && < 1.1
60 , base >= 4.7 && < 5.0
61 , binary >= 0.8 && < 0.9
62 , bytestring >= 0.2 && < 0.11
63 , case-insensitive >= 0.2 && < 1.3
64 , connection >= 0.2.2 && < 0.3
65 , data-default-class
66 , http-client >= 0.5 && < 0.6
67 , http-client-tls >= 0.3.2 && < 0.4
68 , http-conduit >= 2.2 && < 3.0
69 , http-types >= 0.8 && < 10.0
70 , mtl >= 2.0 && < 3.0
71 , text >= 0.2 && < 1.3
72 , transformers >= 0.4 && < 0.6
73 if !impl(ghc >= 8.0)
74 build-depends: semigroups == 0.18.*
75 exposed-modules: Network.HTTP.Req
76 other-modules: Network.HTTP.Req.AWS
77 , Network.HTTP.Req.OAuth1
78 if flag(dev)
79 ghc-options: -Wall -Werror
80 else
81 ghc-options: -O2 -Wall
82 default-language: Haskell2010
84test-suite tests
85 main-is: Spec.hs
86 other-modules: Network.HTTP.ReqSpec
87 hs-source-dirs: tests
88 type: exitcode-stdio-1.0
89 build-depends: QuickCheck >= 2.7 && < 3.0
90 , base >= 4.7 && < 5.0
91 , hspec >= 2.0 && < 3.0
92 , req >= 0.1.0
93 if flag(dev)
94 ghc-options: -Wall -Werror
95 else
96 ghc-options: -O2 -Wall
97 default-language: Haskell2010