Skip to content

Commit

Permalink
[#439] Support GHC-9.6 (#445)
Browse files Browse the repository at this point in the history
* [#439] Support GHC-9.6

Resolves #439

* Fix window doctest

* Remove whitespace warning on type operators
  • Loading branch information
vrom911 committed Oct 3, 2023
1 parent e633cb3 commit 71e2f53
Show file tree
Hide file tree
Showing 10 changed files with 368 additions and 293 deletions.
139 changes: 72 additions & 67 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,21 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
cabal: ["3.8"]
cabal: ['3.8']
ghc:
- "8.4.4"
- "8.6.5"
- "8.8.4"
- "8.10.7"
- "9.0.2"
- "9.2.7"
- "9.4.4"
- '8.4.4'
- '8.6.5'
- '8.8.4'
- '8.10.7'
- '9.0.2'
- '9.2.8'
- '9.4.7'
- '9.6.3'
exclude:
- os: macOS-latest
ghc: 9.2.7
ghc: 9.4.7
- os: macOS-latest
ghc: 9.2.8
- os: macOS-latest
ghc: 9.0.2
- os: macOS-latest
Expand All @@ -40,7 +43,9 @@ jobs:
ghc: 8.4.4

- os: windows-latest
ghc: 9.2.7
ghc: 9.4.7
- os: windows-latest
ghc: 9.2.8
- os: windows-latest
ghc: 9.0.2
- os: windows-latest
Expand All @@ -53,76 +58,76 @@ jobs:
ghc: 8.4.4

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- uses: haskell/actions/setup@v2.3
id: setup-haskell-cabal
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- uses: haskell/actions/setup@v2.3
id: setup-haskell-cabal
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- name: Configure
run: |
cabal configure --enable-tests --enable-benchmarks --enable-documentation --test-show-details=direct --write-ghc-environment-files=always
- name: Configure
run: |
cabal configure --enable-tests --enable-benchmarks --enable-documentation --test-show-details=direct --write-ghc-environment-files=always
- name: Freeze
run: |
cabal freeze
- name: Freeze
run: |
cabal freeze
- uses: actions/cache@v3
name: Cache ~/.cabal/store
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
- uses: actions/cache@v3
name: Cache ~/.cabal/store
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}

- name: Install dependencies
run: |
cabal build all --only-dependencies
- name: Install dependencies
run: |
cabal build all --only-dependencies
- name: Build
run: |
cabal build all
- name: Build
run: |
cabal build all
- name: Test
run: |
cabal test all
- name: Test
run: |
cabal test all
- name: Documentation
run: |
cabal haddock
- name: Documentation
run: |
cabal haddock
stack:
name: stack / ghc ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
stack: ["2.9"]
ghc: ["9.2.6"]
stack: ['2.9']
ghc: ['9.2.8']

steps:
- uses: actions/checkout@v3

- uses: haskell/actions/setup@v2.3
name: Setup Haskell Stack
with:
ghc-version: ${{ matrix.ghc }}
stack-version: ${{ matrix.stack }}

- uses: actions/cache@v3
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack

- name: Install dependencies
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --only-dependencies
- name: Build
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
- name: Test
run: |
stack test --system-ghc
- uses: actions/checkout@v3

- uses: haskell/actions/setup@v2.3
name: Setup Haskell Stack
with:
ghc-version: ${{ matrix.ghc }}
stack-version: ${{ matrix.stack }}

- uses: actions/cache@v3
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack

- name: Install dependencies
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --only-dependencies
- name: Build
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
- name: Test
run: |
stack test --system-ghc
Loading

0 comments on commit 71e2f53

Please sign in to comment.