Skip to content

Commit 511dc23

Browse files
committed
v1.6.0.2: drop GHC 7.10, allow latest containers
1 parent dbc657f commit 511dc23

File tree

4 files changed

+58
-38
lines changed

4 files changed

+58
-38
lines changed

.github/workflows/ci-mac-win.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: [windows-latest, macos-latest]
24-
ghc: ['9.8', '9.6', '9.4']
24+
ghc: ['9.10', '9.8', '9.6', '9.4']
2525
# Minor versions are determined by setup-haskell.
2626
# Use quotes so that the version numbers are not interpreted as floats.
2727
include:
2828
- os: macos-13
29-
ghc: '7.10'
29+
ghc: '8.0'
3030
- os: windows-latest
3131
ghc: '8.4'
32-
# 2022-05-26: GHC 7.10.3 is broken on Windows (Chocolatey)
3332
# 2023-02-10: GHCs 8.0 and 8.2 fail to build hsc2hs-0.68.10 on Windows
3433
# see https://github.com/haskell/hsc2hs/issues/81
3534

.github/workflows/haskell-ci.yml

+29-19
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#
77
# haskell-ci regenerate
88
#
9-
# For more information, see https://github.com/andreasabel/haskell-ci
9+
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.19.20240703
11+
# version: 0.19.20250216
1212
#
13-
# REGENDATA ("0.19.20240703",["github","MissingH.cabal"])
13+
# REGENDATA ("0.19.20250216",["github","MissingH.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -23,7 +23,7 @@ on:
2323
jobs:
2424
linux:
2525
name: Haskell-CI - Linux - ${{ matrix.compiler }}
26-
runs-on: ubuntu-20.04
26+
runs-on: ubuntu-24.04
2727
timeout-minutes:
2828
60
2929
container:
@@ -32,14 +32,19 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35+
- compiler: ghc-9.12.1
36+
compilerKind: ghc
37+
compilerVersion: 9.12.1
38+
setup-method: ghcup
39+
allow-failure: false
3540
- compiler: ghc-9.10.1
3641
compilerKind: ghc
3742
compilerVersion: 9.10.1
3843
setup-method: ghcup
3944
allow-failure: false
40-
- compiler: ghc-9.8.2
45+
- compiler: ghc-9.8.4
4146
compilerKind: ghc
42-
compilerVersion: 9.8.2
47+
compilerVersion: 9.8.4
4348
setup-method: ghcup
4449
allow-failure: false
4550
- compiler: ghc-9.6.6
@@ -94,15 +99,29 @@ jobs:
9499
allow-failure: false
95100
fail-fast: false
96101
steps:
97-
- name: apt
102+
- name: apt-get install
98103
run: |
99104
apt-get update
100105
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
106+
- name: Install GHCup
107+
run: |
101108
mkdir -p "$HOME/.ghcup/bin"
102-
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
109+
curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
103110
chmod a+x "$HOME/.ghcup/bin/ghcup"
104-
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
111+
- name: Install cabal-install
112+
run: |
105113
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
114+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
115+
- name: Install GHC (GHCup)
116+
if: matrix.setup-method == 'ghcup'
117+
run: |
118+
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
119+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
120+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
121+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
122+
echo "HC=$HC" >> "$GITHUB_ENV"
123+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
124+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
106125
env:
107126
HCKIND: ${{ matrix.compilerKind }}
108127
HCNAME: ${{ matrix.compiler }}
@@ -113,21 +132,12 @@ jobs:
113132
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
114133
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
115134
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
116-
HCDIR=/opt/$HCKIND/$HCVER
117-
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
118-
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
119-
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
120-
echo "HC=$HC" >> "$GITHUB_ENV"
121-
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
122-
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
123-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
124135
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
125136
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
126137
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
127138
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
128139
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
129140
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
130-
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
131141
env:
132142
HCKIND: ${{ matrix.compilerKind }}
133143
HCNAME: ${{ matrix.compiler }}
@@ -243,8 +253,8 @@ jobs:
243253
rm -f cabal.project.local
244254
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
245255
- name: save cache
246-
uses: actions/cache/save@v4
247256
if: always()
257+
uses: actions/cache/save@v4
248258
with:
249259
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
250260
path: ~/.cabal/store

CHANGES.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 1.6.0.2
2+
3+
_Andreas Abel, 2025-03-02_
4+
5+
- Drop support for GHC 7.10
6+
- Allow `containers < 1`
7+
- Tested with GHC 8.0 - 9.12.1
8+
19
# 1.6.0.1
210

311
_Andreas Abel, 2023-09-11_

MissingH.cabal

+19-16
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
cabal-version: 1.12
1+
cabal-version: 1.24
22
name: MissingH
3-
version: 1.6.0.1
4-
x-revision: 3
3+
version: 1.6.0.2
54

65
build-type: Simple
76
license: BSD3
@@ -11,8 +10,9 @@ maintainer: Andreas Abel
1110
license-file: LICENSE
1211

1312
tested-with:
13+
GHC == 9.12.1
1414
GHC == 9.10.1
15-
GHC == 9.8.2
15+
GHC == 9.8.4
1616
GHC == 9.6.6
1717
GHC == 9.4.8
1818
GHC == 9.2.8
@@ -32,20 +32,22 @@ description:
3232
category: Unclassified
3333
bug-reports: https://github.com/haskell-hvr/missingh/issues
3434

35-
extra-source-files:
35+
extra-doc-files:
3636
CHANGES.md
3737
LICENSE
3838
announcements/0.10.0.txt
3939
announcements/0.8.0.txt
4040
announcements/0.9.0.txt
41+
3rd-party-licenses/BSD
42+
3rd-party-licenses/LGPL-2.1
43+
44+
extra-source-files:
4145
testsrc/gzfiles/empty.gz
4246
testsrc/gzfiles/t1.gz
4347
testsrc/gzfiles/t1bad.gz
4448
testsrc/gzfiles/t2.gz
4549
testsrc/gzfiles/zeros.gz
4650
testsrc/mime.types.test
47-
3rd-party-licenses/BSD
48-
3rd-party-licenses/LGPL-2.1
4951
examples/simplegrep.hs
5052
examples/test2.hs
5153
examples/test3.hs
@@ -126,8 +128,8 @@ library
126128

127129
build-depends:
128130
array >= 0.4.0.0 && < 0.6
129-
, base >= 4.8.0.0 && < 5
130-
, containers >= 0.4.2.1 && < 0.8
131+
, base >= 4.9 && < 5
132+
, containers >= 0.4.2.1 && < 1
131133
, directory >= 1.1.0.2 && < 1.4
132134
, filepath >= 1.3.0.0 && < 1.6
133135
, hslogger >= 1.3.0.0 && < 1.4
@@ -145,12 +147,12 @@ library
145147
else
146148
build-depends: network >= 2.6.3.1 && <2.9
147149

148-
If !os(windows)
149-
Build-Depends: unix >= 2.5.1.0 && < 2.9
150+
if !os(windows)
151+
build-depends: unix >= 2.5.1.0 && < 2.9
150152

151-
ghc-options: -Wall
152-
if impl(ghc >= 8)
153-
ghc-options: -Wcompat
153+
ghc-options:
154+
-Wall
155+
-Wcompat
154156

155157
----------------------------------------------------------------------------
156158

@@ -206,5 +208,6 @@ test-suite runtests
206208
build-depends:
207209
HUnit == 1.6.*
208210

209-
if impl(ghc >= 8)
210-
ghc-options: -Wcompat
211+
ghc-options:
212+
-Wall
213+
-Wcompat

0 commit comments

Comments
 (0)