Skip to content

Commit f8bcd7a

Browse files
committed
fix mtl >= 2.3 GitHub Action
1 parent 339cad2 commit f8bcd7a

File tree

2 files changed

+24
-62
lines changed

2 files changed

+24
-62
lines changed

.github/workflows/cabal-mtl-2.3.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/cabal.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,27 @@ jobs:
3333
run: cabal test all --enable-tests
3434
- name: Haddock
3535
run: cabal haddock all
36+
build_with_mtl_2_3:
37+
runs-on: ${{ matrix.os }}
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
ghc: ['9.4.4']
42+
cabal: ['3.8.1.0']
43+
os: [ubuntu-latest]
44+
name: Cabal with GHC ${{ matrix.ghc }} and mtl >= 2.3.1
45+
steps:
46+
- uses: actions/checkout@v3
47+
- name: Setup Haskell
48+
uses: haskell/actions/setup@v2
49+
with:
50+
ghc-version: ${{ matrix.ghc }}
51+
cabal-version: ${{ matrix.cabal }}
52+
- name: Install dependencies
53+
run: sudo apt install -y libbrotli-dev libgd-dev
54+
- name: Build dependencies with mtl >= 2.3.1
55+
# 2022-12-30: 'transformers >= 0.6' is needed because of happstack-server
56+
run: cabal build all --disable-tests --dependencies-only -O0 --constraint 'mtl >= 2.3.1' --constraint 'transformers >= 0.6' --allow-newer='Cabal:mtl' --allow-newer='Cabal:transformers'
57+
- name: Build with mtl >= 2.3.1
58+
# 2022-12-30: 'transformers >= 0.6' is needed because of happstack-server
59+
run: cabal build all --disable-tests -O0 --constraint 'mtl >= 2.3.1' --constraint 'transformers >= 0.6' --allow-newer='Cabal:mtl' --allow-newer='Cabal:transformers'

0 commit comments

Comments
 (0)