@@ -0,0 +1,79 @@
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.
32+
33+name: req
34+version: 0.1.0
35+cabal-version: >= 1.10
36+license: BSD3
37+license-file: LICENSE.md
38+author: Mark Karpov <markkarpov@openmailbox.org>
39+maintainer: Mark Karpov <markkarpov@openmailbox.org>
40+homepage: https://github.com/mrkkrp/req
41+bug-reports: https://github.com/mrkkrp/req/issues
42+category: Network, Web
43+synopsis: Library for safe construction of HTTP requests
44+build-type: Simple
45+description: Library for safe construction of HTTP requests.
46+extra-doc-files: CHANGELOG.md
47+ , README.md
48+
49+source-repository head
50+ type: git
51+ location: https://github.com/mrkkrp/req.git
52+
53+flag dev
54+ description: Turn on development settings.
55+ manual: True
56+ default: False
57+
58+library
59+ build-depends: base >= 4.7 && < 5.0
60+ exposed-modules: Network.HTTP.Req
61+ if flag(dev)
62+ ghc-options: -Wall -Werror
63+ else
64+ ghc-options: -O2 -Wall
65+ default-language: Haskell2010
66+
67+test-suite tests
68+ main-is: Spec.hs
69+ other-modules: Network.HTTP.ReqSpec
70+ hs-source-dirs: tests
71+ type: exitcode-stdio-1.0
72+ build-depends: base >= 4.7 && < 5.0
73+ , hspec >= 2.0 && < 3.0
74+ , req >= 0.1.0
75+ if flag(dev)
76+ ghc-options: -Wall -Werror
77+ else
78+ ghc-options: -O2 -Wall
79+ default-language: Haskell2010