Skip to content

Commit

Permalink
Merge pull request #547 from LaurentRDC/GHC-9-10-support
Browse files Browse the repository at this point in the history
Support for GHC 9.10
  • Loading branch information
tomsmeding authored Nov 30, 2024
2 parents 73af56f + 2e32777 commit 6c85447
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
- "ARM64"
ghc:
- 'latest'
- '9.10'
- '9.8'
- '9.6'
- '9.4'
- '9.2'
Expand Down
4 changes: 2 additions & 2 deletions accelerate.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ flag nofib

library
build-depends:
base >= 4.12 && < 4.20
base >= 4.12 && < 4.21
, ansi-terminal >= 0.6.2
, base-orphans >= 0.3
, bytestring >= 0.10.2
Expand All @@ -356,7 +356,7 @@ library
, prettyprinter-ansi-terminal >= 1.1.2
, primitive >= 0.6.4
, tasty >= 0.11
, template-haskell
, template-haskell < 2.23
, terminal-size >= 0.3
, text >= 1.2.4
, transformers >= 0.3
Expand Down
13 changes: 13 additions & 0 deletions src/Data/Array/Accelerate/Pattern/TH.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeApplications #-}
-- |
Expand Down Expand Up @@ -181,7 +182,13 @@ mkConP tn' tvs' con' = do
]
r' <- case mf of
Nothing -> return r
-- Since template-haskell 2.22, NamespaceSpecifier has been added
-- https://hackage.haskell.org/package/template-haskell-2.22.0.0/changelog
#if MIN_VERSION_template_haskell(2,22,0)
Just f -> return (InfixD f NoNamespaceSpecifier pat : r)
#else
Just f -> return (InfixD f pat : r)
#endif
return (pat, r')
where
pat = mkName (':' : nameBase cn)
Expand Down Expand Up @@ -273,7 +280,13 @@ mkConS tn' tvs' prev' next' tag' con' = do
]
r' <- case mf of
Nothing -> return r
-- Since template-haskell 2.22, NamespaceSpecifier has been added
-- https://hackage.haskell.org/package/template-haskell-2.22.0.0/changelog
#if MIN_VERSION_template_haskell(2,22,0)
Just f -> return (InfixD f NoNamespaceSpecifier pat : r)
#else
Just f -> return (InfixD f pat : r)
#endif
return r'
where
sig = forallT
Expand Down
3 changes: 2 additions & 1 deletion src/Data/BitSet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
module Data.BitSet where

import Data.Bits
import Prelude hiding ( foldl, foldr )
-- foldl' is exported by Prelude from GHC 9.10
import Prelude hiding ( foldl, foldr, foldl' )

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.4 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.4 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-latest release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-latest release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.6 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.6 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / stack | ubuntu-latest-x64

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.4 debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.6 debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.2 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.2 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-latest debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.2 debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.8 release

Module ‘Prelude’ does not export ‘foldl'’.

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.8 release

Module ‘Prelude’ does not export ‘foldl'’.

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.0 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.0 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-8.10 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-8.10 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-9.4 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-9.4 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.0 debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-9.8 debug

Module ‘Prelude’ does not export ‘foldl'’.

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | ubuntu-latest-x64 ghc-8.10 debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-9.6 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-9.6 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.0 debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-9.2 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-9.2 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / stack | windows-latest-x64

Module `Prelude' does not export foldl'

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-latest release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-latest release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-9.0 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-9.0 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-8.10 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-8.10 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-8.10 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-8.10 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-8.10 debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-9.8 release

Module ‘Prelude’ does not export ‘foldl'’.

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | windows-latest-x64 ghc-9.8 release

Module ‘Prelude’ does not export ‘foldl'’.

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.0 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.0 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.2 debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.4 debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.2 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.2 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.6 debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.4 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.4 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.6 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.6 release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / stack | macOS-latest-x64

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.8 debug

Module ‘Prelude’ does not export ‘foldl'’.

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-latest debug

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.8 release

Module ‘Prelude’ does not export ‘foldl'’.

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-9.8 release

Module ‘Prelude’ does not export ‘foldl'’.

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-latest release

Module ‘Prelude’ does not export ‘foldl'’

Check warning on line 18 in src/Data/BitSet.hs

View workflow job for this annotation

GitHub Actions / cabal | macOS-latest-x64 ghc-latest release

Module ‘Prelude’ does not export ‘foldl'’
import qualified Data.List as List

import GHC.Exts ( IsList, build )
Expand Down

0 comments on commit 6c85447

Please sign in to comment.