git.iko.soy/typeable/http-api-data
on master help sign in
Merge pull request #115 from fizruk/updates

Relaxe bounds: base, hashable, hspec

commit0f8f195303f76e5dff1073bda4ebd9065675e7a6 authorOleg Grenrus <oleg.grenrus@iki.fi> dateSat 13 Nov 2021, 19:33 (5 years ago) parent561d254fa4497a
2 files changed+53−20
.github/workflows/haskell-ci.yml+45−13 http-api-data.cabal+8−7
.github/workflows/haskell-ci.yml+45−13
@@ -8,9 +8,9 @@
88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11−# version: 0.13.20210827
11+# version: 0.13.20211111
1212#
13−# REGENDATA ("0.13.20210827",["github","cabal.project"])
13+# REGENDATA ("0.13.20211111",["github","cabal.project"])
1414#
1515name: Haskell-CI
1616on:
@@ -24,21 +24,28 @@ jobs:
2424 linux:
2525 name: Haskell-CI - Linux - ${{ matrix.compiler }}
2626 runs-on: ubuntu-18.04
27+ timeout-minutes:
28+ 60
2729 container:
2830 image: buildpack-deps:bionic
2931 continue-on-error: ${{ matrix.allow-failure }}
3032 strategy:
3133 matrix:
3234 include:
35+ - compiler: ghc-9.2.1
36+ compilerKind: ghc
37+ compilerVersion: 9.2.1
38+ setup-method: ghcup
39+ allow-failure: false
3340 - compiler: ghc-9.0.1
3441 compilerKind: ghc
3542 compilerVersion: 9.0.1
3643 setup-method: hvr-ppa
3744 allow-failure: false
38− - compiler: ghc-8.10.4
45+ - compiler: ghc-8.10.7
3946 compilerKind: ghc
40− compilerVersion: 8.10.4
41− setup-method: hvr-ppa
47+ compilerVersion: 8.10.7
48+ setup-method: ghcup
4249 allow-failure: false
4350 - compiler: ghc-8.8.4
4451 compilerKind: ghc
@@ -81,9 +88,21 @@ jobs:
8188 run: |
8289 apt-get update
8390 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
84− apt-add-repository -y 'ppa:hvr/ghc'
85− apt-get update
86− apt-get install -y "$HCNAME" cabal-install-3.4
91+ if [ "${{ matrix.setup-method }}" = ghcup ]; then
92+ mkdir -p "$HOME/.ghcup/bin"
93+ curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
94+ chmod a+x "$HOME/.ghcup/bin/ghcup"
95+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
96+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
97+ else
98+ apt-add-repository -y 'ppa:hvr/ghc'
99+ apt-get update
100+ apt-get install -y "$HCNAME"
101+ mkdir -p "$HOME/.ghcup/bin"
102+ curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
103+ chmod a+x "$HOME/.ghcup/bin/ghcup"
104+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
105+ fi
87106 env:
88107 HCKIND: ${{ matrix.compilerKind }}
89108 HCNAME: ${{ matrix.compiler }}
@@ -95,11 +114,20 @@ jobs:
95114 echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
96115 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
97116 HCDIR=/opt/$HCKIND/$HCVER
98− HC=$HCDIR/bin/$HCKIND
99− echo "HC=$HC" >> "$GITHUB_ENV"
100− echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
101− echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
102− echo "CABAL=/opt/cabal/3.4/bin/cabal -vnormal+nowrap" >> "$GITHUB_ENV"
117+ if [ "${{ matrix.setup-method }}" = ghcup ]; then
118+ HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
119+ echo "HC=$HC" >> "$GITHUB_ENV"
120+ echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
121+ echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
122+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
123+ else
124+ HC=$HCDIR/bin/$HCKIND
125+ echo "HC=$HC" >> "$GITHUB_ENV"
126+ echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
127+ echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
128+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
129+ fi
130+
103131 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
104132 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
105133 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -133,6 +161,10 @@ jobs:
133161 repository hackage.haskell.org
134162 url: http://hackage.haskell.org/
135163 EOF
164+ cat >> $CABAL_CONFIG <<EOF
165+ program-default-options
166+ ghc-options: $GHCJOBS +RTS -M3G -RTS
167+ EOF
136168 cat $CABAL_CONFIG
137169 - name: versions
138170 run: |
http-api-data.cabal+8−7
@@ -1,7 +1,7 @@
11cabal-version: >= 1.10
22name: http-api-data
33version: 0.4.3
4−x-revision: 3
4+x-revision: 4
55
66synopsis: Converting to/from HTTP API data like URL pieces, headers and query parameters.
77category: Web
@@ -32,8 +32,9 @@ tested-with:
3232 GHC==8.4.4,
3333 GHC==8.6.5,
3434 GHC==8.8.4,
35− GHC==8.10.4,
36− GHC==9.0.1
35+ GHC==8.10.7,
36+ GHC==9.0.1,
37+ GHC==9.2.1
3738
3839flag use-text-show
3940 description: Use text-show library for efficient ToHttpApiData implementations.
@@ -45,7 +46,7 @@ library
4546 include-dirs: include/
4647
4748 -- GHC bundled
48− build-depends: base >= 4.7 && < 4.16
49+ build-depends: base >= 4.7 && < 4.17
4950 , bytestring >= 0.10.4.0 && < 0.12
5051 , containers >= 0.5.5.1 && < 0.7
5152 , text >= 1.2.3.0 && < 1.3
@@ -61,7 +62,7 @@ library
6162 , attoparsec-iso8601 >= 1.0.2.0 && < 1.1
6263 , base-compat >= 0.10.5 && < 0.13
6364 , cookie >= 0.4.3 && < 0.5
64− , hashable >= 1.2.7.0 && < 1.4
65+ , hashable >= 1.2.7.0 && < 1.5
6566 , http-types >= 0.12.3 && < 0.13
6667 , tagged >= 0.8.5 && < 0.9
6768 , time-compat >= 1.9.5 && < 1.10
@@ -98,7 +99,7 @@ test-suite spec
9899 hs-source-dirs: test
99100 ghc-options: -Wall
100101 default-language: Haskell2010
101− build-tool-depends: hspec-discover:hspec-discover >= 2.7.1 && <2.9
102+ build-tool-depends: hspec-discover:hspec-discover >= 2.7.1 && <2.10
102103 -- inherited depndencies
103104 build-depends:
104105 base
@@ -115,7 +116,7 @@ test-suite spec
115116 build-depends: nats
116117
117118 build-depends: HUnit >= 1.6.0.0 && <1.7
118− , hspec >= 2.7.1 && <2.9
119+ , hspec >= 2.7.1 && <2.10
119120 , QuickCheck >= 2.13.1 && <2.15
120121 , quickcheck-instances >= 0.3.25.2 && <0.4
121122