Skip to content

Commit

Permalink
Support for GHC 9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC authored and tomsmeding committed Nov 30, 2024
1 parent 030e0ff commit cce3400
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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 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
2 changes: 1 addition & 1 deletion src/Data/BitSet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
module Data.BitSet where

import Data.Bits
import Prelude hiding ( foldl, foldr )
import Prelude hiding ( foldl, foldr, foldl' )
import qualified Data.List as List

import GHC.Exts ( IsList, build )
Expand Down

0 comments on commit cce3400

Please sign in to comment.