Skip to content

Commit

Permalink
Merge pull request #79 from tweag/cb/ghc-9.6.2
Browse files Browse the repository at this point in the history
Support GHC 9.6
  • Loading branch information
mergify[bot] authored Jan 3, 2024
2 parents 7dbe985 + bbcb0c2 commit 223b51f
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ common:ghc_9_2_7 --repo_env=GHC_VERSION=9.2.7

common:ghc_9_4_5 --repo_env=GHC_VERSION=9.4.5

common:ghc_9_6_2 --repo_env=GHC_VERSION=9.6.2

common:bzlmod --enable_bzlmod

# Try to load a file that includes the remote cache authentication flag
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc-version: [ghc_8_10_7, ghc_9_0_2, ghc_9_2_7, ghc_9_4_5]
ghc-version: [ghc_8_10_7, ghc_9_0_2, ghc_9_2_7, ghc_9_4_5, ghc_9_6_2]
enable-bzlmod: [false]
include:
- os: ubuntu-latest
Expand All @@ -31,6 +31,9 @@ jobs:
- os: ubuntu-latest
ghc-version: ghc_9_4_5
enable-bzlmod: true
- os: ubuntu-latest
ghc-version: ghc_9_6_2
enable-bzlmod: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion cabalscan/src/Cabal/Cabal_9_4.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-#LANGUAGE CPP #-}

#if __GLASGOW_HASKELL__ == 904
#if __GLASGOW_HASKELL__ >= 904

module Cabal.Cabal_9_4(module Cabal, depLibraries, hsSourceDirs)

Expand Down
6 changes: 5 additions & 1 deletion cabalscan/src/CabalScan/RuleGenerator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ import qualified Cabal.Cabal_9_0 as Cabal

import qualified Cabal.Cabal_9_2 as Cabal

#else
#elif __GLASGOW_HASKELL__ >= 904

import qualified Cabal.Cabal_9_4 as Cabal

#else

#error GHC version __GLASGOW_HASKELL__ not supported

#endif

generateRulesForCabalFile :: FilePath -> IO [RuleInfo]
Expand Down
Loading

0 comments on commit 223b51f

Please sign in to comment.