git.iko.soy/typeable/http-api-data
on master help sign in
Support GHC-8.6
ff11afeOleg Grenrus
.travis.yml+9−19
@@ -2,7 +2,7 @@
2#
2#
3# runghc make_travis_yml_2.hs '--config' '--output' '.travis.yml' 'http-api-data.cabal'
3# runghc make_travis_yml_2.hs '--config' '--output' '.travis.yml' 'http-api-data.cabal'
4#
4#
5−# For more information, see https://github.com/hvr/multi-ghc-travis
5+# For more information, see https://github.com/haskell-CI/haskell-ci
6#
6#
7language: c
7language: c
8sudo: false
8sudo: false
@@ -32,21 +32,24 @@ before_cache:
32
32
33matrix:
33matrix:
34 include:
34 include:
35+ - compiler: "ghc-8.6.1"
36+ # env: TEST=--disable-tests BENCH=--disable-benchmarks
37+ addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.6.1], sources: [hvr-ghc]}}
35 - compiler: "ghc-8.4.3"
38 - compiler: "ghc-8.4.3"
36 # env: TEST=--disable-tests BENCH=--disable-benchmarks
39 # env: TEST=--disable-tests BENCH=--disable-benchmarks
37− addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-8.4.3], sources: [hvr-ghc]}}
40+ addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.4.3], sources: [hvr-ghc]}}
38 - compiler: "ghc-8.2.2"
41 - compiler: "ghc-8.2.2"
39 # env: TEST=--disable-tests BENCH=--disable-benchmarks
42 # env: TEST=--disable-tests BENCH=--disable-benchmarks
40− addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-8.2.2], sources: [hvr-ghc]}}
43+ addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.2.2], sources: [hvr-ghc]}}
41 - compiler: "ghc-8.0.2"
44 - compiler: "ghc-8.0.2"
42 # env: TEST=--disable-tests BENCH=--disable-benchmarks
45 # env: TEST=--disable-tests BENCH=--disable-benchmarks
43− addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-8.0.2], sources: [hvr-ghc]}}
46+ addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.0.2], sources: [hvr-ghc]}}
44 - compiler: "ghc-7.10.3"
47 - compiler: "ghc-7.10.3"
45 # env: TEST=--disable-tests BENCH=--disable-benchmarks
48 # env: TEST=--disable-tests BENCH=--disable-benchmarks
46− addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-7.10.3], sources: [hvr-ghc]}}
49+ addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-7.10.3], sources: [hvr-ghc]}}
47 - compiler: "ghc-7.8.4"
50 - compiler: "ghc-7.8.4"
48 # env: TEST=--disable-tests BENCH=--disable-benchmarks
51 # env: TEST=--disable-tests BENCH=--disable-benchmarks
49− addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.2,ghc-7.8.4], sources: [hvr-ghc]}}
52+ addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-7.8.4], sources: [hvr-ghc]}}
50
53
51before_install:
54before_install:
52 - HC=${CC}
55 - HC=${CC}
@@ -116,18 +119,5 @@ script:
116 # Build without installed constraints for packages in global-db
119 # Build without installed constraints for packages in global-db
117 - if $UNCONSTRAINED; then rm -f cabal.project.local; echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks all; else echo "Not building without installed constraints"; fi
120 - if $UNCONSTRAINED; then rm -f cabal.project.local; echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks all; else echo "Not building without installed constraints"; fi
118
121
119− # Constraint sets
120− - rm -rf cabal.project.local
121−
122− # Constraint set lower-bounds-7.8.4
123− - if [ $HCNUMVER -eq 70804 ]; then cabal new-build -w ${HC} --disable-tests --disable-benchmarks --constraint='attoparsec ==0.13.0.1' --constraint='attoparsec-iso8601 ==1.0.0.0' --constraint='bytestring ==0.10.4.0' --constraint='containers ==0.5.5.1' --constraint='hashable ==1.1.2.4' --constraint='http-types ==0.8.6' --constraint='semigroups ==0.16' --constraint='text ==1.1.1.3' --constraint='time ==1.4.2' --constraint='time-local-compat ==0.1.1.0' --constraint='unordered-containers ==0.2.6.0' --constraint='uri-bytestring ==0.1.7' --constraint='uuid-types ==1.0.2' all; else echo skipping...; fi
124−
125− # Constraint set lower-bounds-7.10.3
126− - if [ $HCNUMVER -eq 71003 ]; then cabal new-build -w ${HC} --disable-tests --disable-benchmarks --constraint='attoparsec ==0.13.0.1' --constraint='attoparsec-iso8601 ==1.0.0.0' --constraint='bytestring ==0.10.6.0' --constraint='containers ==0.5.6.1' --constraint='hashable ==1.2.3.2' --constraint='http-types ==0.8.6' --constraint='semigroups ==0.16.0.1' --constraint='text ==1.2.0.2' --constraint='time ==1.5.0.1' --constraint='time-local-compat ==0.1.1.0' --constraint='unordered-containers ==0.2.6.0' --constraint='uri-bytestring ==0.1.7' --constraint='uuid-types ==1.0.2' all; else echo skipping...; fi
127−
128− # Constraint set lower-bounds-8.0.2
129− - if [ $HCNUMVER -eq 80002 ]; then cabal new-build -w ${HC} --disable-tests --disable-benchmarks --constraint='attoparsec ==0.13.0.1' --constraint='attoparsec-iso8601 ==1.0.0.0' --constraint='bytestring ==0.10.6.0' --constraint='containers ==0.5.7.0' --constraint='hashable ==1.2.4.0' --constraint='http-types ==0.8.6' --constraint='text ==1.2.2.0' --constraint='time ==1.5.0.1' --constraint='time-local-compat ==0.1.1.0' --constraint='unordered-containers ==0.2.6.0' --constraint='uri-bytestring ==0.2.1.0' --constraint='uuid-types ==1.0.2' all; else echo skipping...; fi
130−
131−
132# REGENDATA ["--config","--output",".travis.yml","http-api-data.cabal"]
122# REGENDATA ["--config","--output",".travis.yml","http-api-data.cabal"]
133# EOF
123# EOF
cabal.make-travis-yml−54
@@ -1,56 +1,2 @@
1jobs: :2
1jobs: :2
2branches: master
2branches: master
3−
4−-- we use http-types ==0.8.6
5−-- because build plan has blaze-builder-0.4
6−--
7−-- strict lower-bound for http-types ==0.8.3,
8−constraint-set lower-bounds-7.8.4
9− ghc: == 7.8.4
10− constraints:
11− attoparsec ==0.13.0.1,
12− attoparsec-iso8601 ==1.0.0.0,
13− bytestring ==0.10.4.0,
14− containers ==0.5.5.1,
15− hashable ==1.1.2.4,
16− http-types ==0.8.6,
17− semigroups ==0.16,
18− text ==1.1.1.3,
19− time ==1.4.2,
20− time-local-compat ==0.1.1.0,
21− unordered-containers ==0.2.6.0,
22− uri-bytestring ==0.1.7,
23− uuid-types ==1.0.2
24−
25−constraint-set lower-bounds-7.10.3
26− ghc: == 7.10.3
27− constraints:
28− attoparsec ==0.13.0.1,
29− attoparsec-iso8601 ==1.0.0.0,
30− bytestring ==0.10.6.0,
31− containers ==0.5.6.1,
32− hashable ==1.2.3.2,
33− http-types ==0.8.6,
34− semigroups ==0.16.0.1,
35− text ==1.2.0.2,
36− time ==1.5.0.1,
37− time-local-compat ==0.1.1.0,
38− unordered-containers ==0.2.6.0,
39− uri-bytestring ==0.1.7,
40− uuid-types ==1.0.2
41−
42−constraint-set lower-bounds-8.0.2
43− ghc: == 8.0.2
44− constraints:
45− attoparsec ==0.13.0.1,
46− attoparsec-iso8601 ==1.0.0.0,
47− bytestring ==0.10.6.0,
48− containers ==0.5.7.0,
49− hashable ==1.2.4.0,
50− http-types ==0.8.6,
51− text ==1.2.2.0,
52− time ==1.5.0.1,
53− time-local-compat ==0.1.1.0,
54− unordered-containers ==0.2.6.0,
55− uri-bytestring ==0.2.1.0,
56− uuid-types ==1.0.2
http-api-data.cabal+33−21
@@ -24,7 +24,8 @@ tested-with:
24 GHC==7.10.3,
24 GHC==7.10.3,
25 GHC==8.0.2,
25 GHC==8.0.2,
26 GHC==8.2.2,
26 GHC==8.2.2,
27− GHC==8.4.3
27+ GHC==8.4.3,
28+ GHC==8.6.1
28
29
29custom-setup
30custom-setup
30 setup-depends:
31 setup-depends:
@@ -40,24 +41,32 @@ flag use-text-show
40library
41library
41 hs-source-dirs: src/
42 hs-source-dirs: src/
42 include-dirs: include/
43 include-dirs: include/
44+
45+ -- GHC bundled
43− build-depends: base >= 4.7 && < 4.12
46+ build-depends: base >= 4.7 && < 4.13
44− , attoparsec >= 0.13.0.1 && < 0.14
45− , attoparsec-iso8601 >= 1.0.0.0 && < 1.1
46 , bytestring >= 0.10.4.0 && < 0.11
47 , bytestring >= 0.10.4.0 && < 0.11
47− , containers >= 0.5.5.1 && < 0.6
48+ , containers >= 0.5.5.1 && < 0.7
48− , hashable >= 1.1.2.4 && < 1.3
49− , http-types >= 0.8.6 && < 0.13
50− , text >= 1.1.1.3 && < 1.3
49+ , text >= 1.2.3.0 && < 1.3
51 , time >= 1.4.2 && < 1.9
50 , time >= 1.4.2 && < 1.9
51+
52+ -- other-dependencies
53+ build-depends:
54+ attoparsec >= 0.13.2.2 && < 0.14
55+ , attoparsec-iso8601 >= 1.0.0.0 && < 1.1
56+ , cookie >= 0.4.3 && < 0.4.5
57+ , hashable >= 1.2.7.0 && < 1.3
58+ , http-types >= 0.12.1 && < 0.13
52− , time-locale-compat >= 0.1.1.0 && < 0.2
59+ , time-locale-compat >= 0.1.1.5 && < 0.2
53− , unordered-containers >= 0.2.6.0 && < 0.3
60+ , unordered-containers >= 0.2.9.0 && < 0.3
54− , uuid-types >= 1.0.2 && < 1.1
61+ , uuid-types >= 1.0.3 && <1.1
55− , cookie >= 0.4 && < 0.45
62+
56 if !impl(ghc >= 8.0)
63 if !impl(ghc >= 8.0)
57− build-depends: semigroups >= 0.16 && < 0.19
64+ build-depends: semigroups >= 0.18.5 && < 0.19
65+
58 if flag(use-text-show)
66 if flag(use-text-show)
59 cpp-options: -DUSE_TEXT_SHOW
67 cpp-options: -DUSE_TEXT_SHOW
60− build-depends: text-show >= 2
68+ build-depends: text-show >= 3.7.4 && <3.8
69+
61 exposed-modules:
70 exposed-modules:
62 Web.HttpApiData
71 Web.HttpApiData
63 Web.FormUrlEncoded
72 Web.FormUrlEncoded
@@ -76,13 +85,11 @@ test-suite spec
76 hs-source-dirs: test
85 hs-source-dirs: test
77 ghc-options: -Wall
86 ghc-options: -Wall
78 default-language: Haskell2010
87 default-language: Haskell2010
79− build-tool-depends: hspec-discover:hspec-discover >= 2.4.7 && <2.5
88+ build-tool-depends: hspec-discover:hspec-discover >= 2.5.5 && <2.6
89+ -- inherited depndencies
80− build-depends: HUnit
90+ build-depends:
81− , hspec >= 2.4.7
82− , base
91+ base
83 , bytestring
92 , bytestring
84− , QuickCheck >=2.9
85− , quickcheck-instances >= 0.3.12
86 , unordered-containers
93 , unordered-containers
87 , http-api-data
94 , http-api-data
88 , text
95 , text
@@ -90,12 +97,17 @@ test-suite spec
90 , bytestring
97 , bytestring
91 , uuid-types
98 , uuid-types
92
99
100+ build-depends: HUnit >= 1.6.0.0 && <1.7
101+ , hspec >= 2.5.5 && <2.6
102+ , QuickCheck >= 2.11.3 && <2.13
103+ , quickcheck-instances >= 0.3.19 && <0.4
104+
93test-suite doctests
105test-suite doctests
94 ghc-options: -Wall
106 ghc-options: -Wall
95 build-depends:
107 build-depends:
96 base,
108 base,
97 directory >= 1.0,
109 directory >= 1.0,
98− doctest >= 0.11 && <0.17,
110+ doctest >= 0.16.0 && <0.17,
99 filepath
111 filepath
100 default-language: Haskell2010
112 default-language: Haskell2010
101 hs-source-dirs: test
113 hs-source-dirs: test
stack-ghc-7.10.yamldeleted−12
@@ -1,12 +0,0 @@
1−resolver: lts-6.8
2−
3−packages:
4−- '.'
5−
6−flags:
7− http-api-data:
8− use-text-show: false
9−
10−extra-deps:
11−- QuickCheck-2.9.2
12−extra-package-dbs: []
stack-ghc-7.8.yamldeleted−26
@@ -1,26 +0,0 @@
1−resolver: lts-2.22
2−
3−packages:
4−- '.'
5−
6−flags:
7− http-api-data:
8− use-text-show: false
9−
10−extra-deps:
11−- time-locale-compat-0.1.1.3
12−- uri-bytestring-0.2.2.0
13−# below are dependencies necessary for use-text-show=true
14−- text-show-2.1.2
15−- base-compat-0.9.1
16−- bifunctors-5.2
17−- semigroups-0.16.2.2
18−- th-lift-0.7.6
19−- transformers-compat-0.4.0.4
20−- base-orphans-0.5.4
21−- generic-deriving-1.9.0
22−- doctest-0.11.0
23−- QuickCheck-2.9.2
24−- quickcheck-instances-0.3.12
25−- quickcheck-io-0.1.3
26−extra-package-dbs: []
stack.yaml+3−3
@@ -1,6 +1,6 @@
1+resolver: lts-12.10
2+packages:
3+- '.'
1flags:
4flags:
2 http-api-data:
5 http-api-data:
3 use-text-show: false
6 use-text-show: false
4−packages:
5−- .
6−resolver: lts-12.9