on master help sign in
Format Cabal file with ‘cabal format’
8312ab5Mark Karpov
.travis.yml+11−3
@@ -7,6 +7,12 @@ cache:
7 - ~/.cabal/packages
7 - ~/.cabal/packages
8 - ~/.cabal/store
8 - ~/.cabal/store
9
9
10+env:
11+ global:
12+ # To avoid re-compilation it is important to use exactly the same
13+ # configuration for all steps.
14+ - CABAL_CONFIG="--enable-tests --enable-benchmarks --flags=dev"
15+
10matrix:
16matrix:
11 include:
17 include:
12 - env: CABALVER=3.0 GHCVER=8.6.5
18 - env: CABALVER=3.0 GHCVER=8.6.5
@@ -25,9 +31,11 @@ install:
25 - travis_retry cabal new-update
31 - travis_retry cabal new-update
26
32
27script:
33script:
28− - cabal new-build --enable-tests --enable-benchmarks --flags=dev
34+ - cabal format
29− - cabal new-test --enable-tests --enable-benchmarks --flags=dev
35+ - git diff --exit-code --color=always
36+ - cabal new-build $CABAL_CONFIG
37+ - cabal new-test $CABAL_CONFIG
30− - cabal new-haddock
38+ - cabal new-haddock $CABAL_CONFIG
31 - cabal new-sdist
39 - cabal new-sdist
32
40
33notifications:
41notifications:
req.cabal+117−101
@@ -1,111 +1,127 @@
1−name: req
2−version: 3.1.0
3−cabal-version: 1.18
1+cabal-version: 1.18
2+name: req
3+version: 3.1.0
4+license: BSD3
5+license-file: LICENSE.md
6+maintainer: Mark Karpov <markkarpov92@gmail.com>
7+author: Mark Karpov <markkarpov92@gmail.com>
4−tested-with: GHC==8.6.5, GHC==8.8.3, GHC==8.10.1
8+tested-with: ghc ==8.6.5 ghc ==8.8.3 ghc ==8.10.1
5−license: BSD3
6−license-file: LICENSE.md
7−author: Mark Karpov <markkarpov92@gmail.com>
8−maintainer: Mark Karpov <markkarpov92@gmail.com>
9−homepage: https://github.com/mrkkrp/req
9+homepage: https://github.com/mrkkrp/req
10−bug-reports: https://github.com/mrkkrp/req/issues
10+bug-reports: https://github.com/mrkkrp/req/issues
11+synopsis:
12+ Easy-to-use, type-safe, expandable, high-level HTTP client library
13+
14+description:
15+ Easy-to-use, type-safe, expandable, high-level HTTP client library.
16+
11−category: Network, Web
17+category: Network, Web
12−synopsis: Easy-to-use, type-safe, expandable, high-level HTTP client library
13−build-type: Simple
18+build-type: Simple
14−description: Easy-to-use, type-safe, expandable, high-level HTTP client library.
19+data-files:
15−extra-doc-files: CHANGELOG.md
16− , README.md
17−data-files: httpbin-data/utf8.html
20+ httpbin-data/utf8.html
18− , httpbin-data/robots.txt
21+ httpbin-data/robots.txt
22+
23+extra-doc-files:
24+ CHANGELOG.md
25+ README.md
19
26
20source-repository head
27source-repository head
21− type: git
28+ type: git
22− location: https://github.com/mrkkrp/req.git
29+ location: https://github.com/mrkkrp/req.git
23
30
24flag dev
31flag dev
25− description: Turn on development settings.
32+ description: Turn on development settings.
26− manual: True
27− default: False
33+ default: False
34+ manual: True
28
35
29library
36library
37+ exposed-modules: Network.HTTP.Req
38+ default-language: Haskell2010
30− build-depends: aeson >= 0.9 && < 1.5
39+ build-depends:
40+ aeson >=0.9 && <1.5,
31− , authenticate-oauth >= 1.5 && < 1.7
41+ authenticate-oauth >=1.5 && <1.7,
32− , base >= 4.12 && < 5.0
42+ base >=4.12 && <5.0,
33− , blaze-builder >= 0.3 && < 0.5
43+ blaze-builder >=0.3 && <0.5,
34− , bytestring >= 0.10.8 && < 0.11
44+ bytestring >=0.10.8 && <0.11,
35− , case-insensitive >= 0.2 && < 1.3
45+ case-insensitive >=0.2 && <1.3,
36− , connection >= 0.2.2 && < 0.4
46+ connection >=0.2.2 && <0.4,
37− , http-api-data >= 0.2 && < 0.5
47+ http-api-data >=0.2 && <0.5,
38− , http-client >= 0.5 && < 0.7
48+ http-client >=0.5 && <0.7,
39− , http-client-tls >= 0.3.2 && < 0.4
49+ http-client-tls >=0.3.2 && <0.4,
40− , http-types >= 0.8 && < 10.0
50+ http-types >=0.8 && <10.0,
41− , modern-uri >= 0.3 && < 0.4
51+ modern-uri >=0.3 && <0.4,
42− , monad-control >= 1.0 && < 1.1
52+ monad-control >=1.0 && <1.1,
43− , mtl >= 2.0 && < 3.0
53+ mtl >=2.0 && <3.0,
44− , retry >= 0.8 && < 0.9
54+ retry >=0.8 && <0.9,
45− , text >= 0.2 && < 1.3
55+ text >=0.2 && <1.3,
46− , time >= 1.2 && < 1.10
56+ time >=1.2 && <1.10,
47− , transformers >= 0.4 && < 0.6
57+ transformers >=0.4 && <0.6,
48− , transformers-base
58+ transformers-base -any
49− exposed-modules: Network.HTTP.Req
59+
50− if flag(dev)
60+ if flag(dev)
51− ghc-options: -O0 -Wall -Werror
61+ ghc-options: -O0 -Wall -Werror
62+
52− else
63+ else
53− ghc-options: -O2 -Wall
64+ ghc-options: -O2 -Wall
65+
54− if flag(dev)
66+ if flag(dev)
55− ghc-options: -Wcompat
67+ ghc-options:
56− -Wincomplete-record-updates
68+ -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns
57− -Wincomplete-uni-patterns
58− -Wnoncanonical-monad-instances
69+ -Wnoncanonical-monad-instances
59− default-language: Haskell2010
60
70
61test-suite pure-tests
71test-suite pure-tests
72+ type: exitcode-stdio-1.0
62− main-is: Spec.hs
73+ main-is: Spec.hs
74+ build-tools: hspec-discover >=2.0 && <3.0
75+ hs-source-dirs: pure-tests
63− other-modules: Network.HTTP.ReqSpec
76+ other-modules: Network.HTTP.ReqSpec
64− hs-source-dirs: pure-tests
77+ default-language: Haskell2010
65− type: exitcode-stdio-1.0
78+ build-depends:
66− build-depends: QuickCheck >= 2.7 && < 3.0
79+ QuickCheck >=2.7 && <3.0,
67− , aeson >= 0.9 && < 1.5
80+ aeson >=0.9 && <1.5,
68− , base >= 4.12 && < 5.0
81+ base >=4.12 && <5.0,
69− , blaze-builder >= 0.3 && < 0.5
82+ blaze-builder >=0.3 && <0.5,
70− , bytestring >= 0.10.8 && < 0.11
83+ bytestring >=0.10.8 && <0.11,
71− , case-insensitive >= 0.2 && < 1.3
84+ case-insensitive >=0.2 && <1.3,
72− , hspec >= 2.0 && < 3.0
85+ hspec >=2.0 && <3.0,
73− , hspec-core >= 2.0 && < 3.0
86+ hspec-core >=2.0 && <3.0,
74− , http-client >= 0.5 && < 0.7
87+ http-client >=0.5 && <0.7,
75− , http-types >= 0.8 && < 10.0
88+ http-types >=0.8 && <10.0,
76− , modern-uri >= 0.3 && < 0.4
89+ modern-uri >=0.3 && <0.4,
77− , mtl >= 2.0 && < 3.0
90+ mtl >=2.0 && <3.0,
78− , req
91+ req -any,
79− , retry >= 0.8 && < 0.9
92+ retry >=0.8 && <0.9,
80− , text >= 0.2 && < 1.3
93+ text >=0.2 && <1.3,
81− , time >= 1.2 && < 1.10
94+ time >=1.2 && <1.10
82− build-tools: hspec-discover >= 2.0 && < 3.0
95+
83− if flag(dev)
96+ if flag(dev)
84− ghc-options: -O0 -Wall -Werror
97+ ghc-options: -O0 -Wall -Werror
98+
85− else
99+ else
86− ghc-options: -O2 -Wall
100+ ghc-options: -O2 -Wall
87− default-language: Haskell2010
88
101
89test-suite httpbin-tests
102test-suite httpbin-tests
103+ type: exitcode-stdio-1.0
90− main-is: Spec.hs
104+ main-is: Spec.hs
105+ build-tools: hspec-discover >=2.0 && <3.0
106+ hs-source-dirs: httpbin-tests
91− other-modules: Network.HTTP.ReqSpec
107+ other-modules: Network.HTTP.ReqSpec
92− hs-source-dirs: httpbin-tests
108+ default-language: Haskell2010
93− type: exitcode-stdio-1.0
109+ build-depends:
94− build-depends: QuickCheck >= 2.7 && < 3.0
110+ QuickCheck >=2.7 && <3.0,
95− , aeson >= 0.9 && < 1.5
111+ aeson >=0.9 && <1.5,
96− , base >= 4.12 && < 5.0
112+ base >=4.12 && <5.0,
97− , bytestring >= 0.10.8 && < 0.11
113+ bytestring >=0.10.8 && <0.11,
98− , hspec >= 2.0 && < 3.0
114+ hspec >=2.0 && <3.0,
99− , http-client >= 0.5 && < 0.7
115+ http-client >=0.5 && <0.7,
100− , http-types >= 0.8 && < 10.0
116+ http-types >=0.8 && <10.0,
101− , monad-control >= 1.0 && < 1.1
117+ monad-control >=1.0 && <1.1,
102− , mtl >= 2.0 && < 3.0
118+ mtl >=2.0 && <3.0,
103− , req
119+ req -any,
104− , text >= 0.2 && < 1.3
120+ text >=0.2 && <1.3,
105− , unordered-containers >= 0.2.5 && < 0.2.11
121+ unordered-containers >=0.2.5 && <0.2.11
106− build-tools: hspec-discover >= 2.0 && < 3.0
122+
107− if flag(dev)
123+ if flag(dev)
108− ghc-options: -O0 -Wall -Werror
124+ ghc-options: -O0 -Wall -Werror
125+
109− else
126+ else
110− ghc-options: -O2 -Wall
127+ ghc-options: -O2 -Wall
111− default-language: Haskell2010