Skip to content

Upgrade to ghc 9.12 #491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
ghc: ["9.6.6", "9.8", "9.10"] #using 9.6.6 as ghc-lib-parser-9.10.1.20250103 is not compatible with ghc-9.6.7. Re-enable when sorted
ghc: ["9.10", "9.12"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion lib/Language/Haskell/Stylish/Comments.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ commentGroups getSpan allItems allComments =
commentsWithLines :: [(LineBlock, GHC.LEpaComment)]
commentsWithLines = do
comment <- allComments
let s = GHC.anchor $ GHC.getLoc comment
let s = GHC.epaLocationRealSrcSpan $ GHC.getLoc comment
pure (realSrcSpanToLineBlock s, comment)

work
Expand Down
2 changes: 1 addition & 1 deletion lib/Language/Haskell/Stylish/Config/Cabal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import qualified Distribution.PackageDescription.Parsec as Cabal
import qualified Distribution.Parsec as Cabal
import qualified Distribution.Simple.Utils as Cabal
import qualified Distribution.Utils.Path as Cabal

Check warning on line 18 in lib/Language/Haskell/Stylish/Config/Cabal.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.10

The qualified import of ‘Distribution.Utils.Path’ is redundant

Check warning on line 18 in lib/Language/Haskell/Stylish/Config/Cabal.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.10

The qualified import of ‘Distribution.Utils.Path’ is redundant
import qualified Distribution.Verbosity as Cabal
import GHC.Data.Maybe (mapMaybe)
import qualified Language.Haskell.Extension as Language
Expand Down Expand Up @@ -53,7 +53,7 @@
go searched (p : ps) = do

#if MIN_VERSION_Cabal(3,14,0)
let projectRoot = Just $ makeSymbolicPath p
let projectRoot = Just $ Cabal.makeSymbolicPath p
potentialCabalFile <- Cabal.findPackageDesc projectRoot
#else
potentialCabalFile <- Cabal.findPackageDesc p
Expand Down
2 changes: 1 addition & 1 deletion lib/Language/Haskell/Stylish/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ deepAnnComments :: (Data a, Typeable a) => a -> [GHC.LEpaComment]
deepAnnComments = everything (++) (mkQ [] priorAndFollowing)

priorAndFollowing :: GHC.EpAnnComments -> [GHC.LEpaComment]
priorAndFollowing = sortOn (GHC.anchor . GHC.getLoc) . \case
priorAndFollowing = sortOn (GHC.epaLocationRealSrcSpan . GHC.getLoc) . \case
GHC.EpaComments {..} -> priorComments
GHC.EpaCommentsBalanced {..} -> priorComments ++ followingComments
2 changes: 1 addition & 1 deletion lib/Language/Haskell/Stylish/Module.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
--------------------------------------------------------------------------------
type Lines = [String]

deriving instance Eq GHC.RawPkgQual

Check warning on line 54 in lib/Language/Haskell/Stylish/Module.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.10

Orphan class instance: instance Eq GHC.RawPkgQual

Check warning on line 54 in lib/Language/Haskell/Stylish/Module.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.12

Orphan class instance: instance Eq GHC.RawPkgQual

Check warning on line 54 in lib/Language/Haskell/Stylish/Module.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.10

Orphan class instance: instance Eq GHC.RawPkgQual

Check warning on line 54 in lib/Language/Haskell/Stylish/Module.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.12

Orphan class instance: instance Eq GHC.RawPkgQual

--------------------------------------------------------------------------------
-- | Concrete module type
Expand Down Expand Up @@ -141,7 +141,7 @@
prag comment = case GHC.ac_tok (GHC.unLoc comment) of
GHC.EpaBlockComment str
| lang : p1 : ps <- tokenize str, map toLower lang == "language" ->
pure (GHC.anchor (GHC.getLoc comment), p1 :| ps)
pure (GHC.epaLocationRealSrcSpan (GHC.getLoc comment), p1 :| ps)
_ -> Nothing

tokenize = words .
Expand Down
20 changes: 11 additions & 9 deletions lib/Language/Haskell/Stylish/Printer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import GHC.Hs.Extension (GhcPs)
import GHC.Types.Name.Reader (RdrName (..))
import GHC.Types.SrcLoc (GenLocated (..))
import qualified GHC.Types.SrcLoc as GHC
import GHC.TypeLits (symbolVal)
import GHC.Utils.Outputable (Outputable)

--------------------------------------------------------------------------------
Expand Down Expand Up @@ -160,18 +161,19 @@ putRdrName rdrName = case GHC.unLoc rdrName of

nameAnnAdornment :: GHC.NameAnn -> (String, String)
nameAnnAdornment = \case
GHC.NameAnn {..} -> fromAdornment nann_adornment
GHC.NameAnnCommas {..} -> fromAdornment nann_adornment
GHC.NameAnnBars {..} -> fromAdornment nann_adornment
GHC.NameAnnOnly {..} -> fromAdornment nann_adornment
GHC.NameAnn {GHC.nann_adornment = na} -> fromAdornment na
GHC.NameAnnCommas {GHC.nann_adornment = na} -> fromAdornment na
GHC.NameAnnBars {GHC.nann_parensh = (o, c)} -> fromAdornment (GHC.NameParensHash o c)
GHC.NameAnnOnly {GHC.nann_adornment = na} -> fromAdornment na
GHC.NameAnnRArrow {} -> (mempty, mempty)
GHC.NameAnnQuote {} -> ("'", mempty)
GHC.NameAnnTrailing {} -> (mempty, mempty)
where
fromAdornment GHC.NameParens = ("(", ")")
fromAdornment GHC.NameBackquotes = ("`", "`")
fromAdornment GHC.NameParensHash = ("#(", "#)")
fromAdornment GHC.NameSquare = ("[", "]")
fromAdornment (GHC.NameParens l r) = (symbolVal l, symbolVal r)
fromAdornment (GHC.NameBackquotes l r) = (symbolVal l, symbolVal r)
fromAdornment (GHC.NameParensHash l r) = (symbolVal l, symbolVal r)
fromAdornment (GHC.NameSquare l r) = (symbolVal l, symbolVal r)
fromAdornment GHC.NameNoAdornment = (mempty, mempty)

-- | Print module name
putModuleName :: GHC.ModuleName -> P ()
Expand All @@ -197,7 +199,7 @@ putType ltp = case GHC.unLoc ltp of
(comma >> space)
(fmap putType xs)
putText "]"
GHC.HsExplicitTupleTy _ xs -> do
GHC.HsExplicitTupleTy _ _ xs -> do
putText "'("
sep
(comma >> space)
Expand Down
2 changes: 2 additions & 0 deletions lib/Language/Haskell/Stylish/Step/Data.hs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ step cfg = makeStep "Data" \ls m -> Editor.apply (changes m) ls
isAfterStart :: GHC.LEpaComment -> Bool
isAfterStart (GHC.L (GHC.EpaSpan (GHC.RealSrcSpan commentSpan _)) _) =
GHC.srcSpanStartLine commentSpan >= GHC.srcSpanStartLine declSpan
isAfterStart (GHC.L (GHC.EpaDelta (GHC.RealSrcSpan commentSpan _) _ _) _) =
GHC.srcSpanStartLine commentSpan >= GHC.srcSpanStartLine declSpan
isAfterStart _ = False

dataDecls :: Module -> [DataDecl]
Expand Down
2 changes: 1 addition & 1 deletion lib/Language/Haskell/Stylish/Step/Imports.hs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
-- groups is non-empty by the pattern for this case
-- imports is non-empty as long as groups is non-empty
block = Block
(GHC.srcSpanStartLine . src $ head imports)

Check warning on line 290 in lib/Language/Haskell/Stylish/Step/Imports.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.10

In the use of ‘head’

Check warning on line 290 in lib/Language/Haskell/Stylish/Step/Imports.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.12

In the use of ‘head’

Check warning on line 290 in lib/Language/Haskell/Stylish/Step/Imports.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.10

In the use of ‘head’

Check warning on line 290 in lib/Language/Haskell/Stylish/Step/Imports.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.12

In the use of ‘head’
(GHC.srcSpanEndLine . src $ last imports)
src = fromMaybe (error "regroupImports: missing location") .
GHC.srcSpanToRealSrcSpan . GHC.getLocA
Expand Down Expand Up @@ -538,7 +538,7 @@

--------------------------------------------------------------------------------
printIeWrappedName :: GHC.LIEWrappedName GHC.GhcPs -> P ()
printIeWrappedName lie = case GHC.unLoc lie of

Check warning on line 541 in lib/Language/Haskell/Stylish/Step/Imports.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.10

Pattern match(es) are non-exhaustive

Check warning on line 541 in lib/Language/Haskell/Stylish/Step/Imports.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.12

Pattern match(es) are non-exhaustive

Check warning on line 541 in lib/Language/Haskell/Stylish/Step/Imports.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.10

Pattern match(es) are non-exhaustive

Check warning on line 541 in lib/Language/Haskell/Stylish/Step/Imports.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.12

Pattern match(es) are non-exhaustive
GHC.IEName _ n -> putRdrName n
GHC.IEPattern _ n -> putText "pattern" >> space >> putRdrName n
GHC.IEType _ n -> putText "type" >> space >> putRdrName n
Expand Down Expand Up @@ -638,7 +638,7 @@
prepareInner :: GHC.IE GHC.GhcPs -> GHC.IE GHC.GhcPs
prepareInner = \case
-- Simplify `A ()` to `A`.
GHC.IEThingWith x n GHC.NoIEWildcard [] md -> GHC.IEThingAbs x n md
GHC.IEThingWith x n GHC.NoIEWildcard [] md -> GHC.IEThingAbs (fst x) n md
GHC.IEThingWith x n w ns md ->
GHC.IEThingWith x n w (sortBy (compareWrappedName `on` GHC.unLoc) ns) md
ie -> ie
Expand Down
4 changes: 2 additions & 2 deletions lib/Language/Haskell/Stylish/Step/LanguagePragmas.hs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
verticalCompactPragmas :: String -> [String] -> Lines
verticalCompactPragmas lg pragmas' =
[ "{-# " <> lg
, " " <> head pragmas'

Check warning on line 77 in lib/Language/Haskell/Stylish/Step/LanguagePragmas.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.10

In the use of ‘head’

Check warning on line 77 in lib/Language/Haskell/Stylish/Step/LanguagePragmas.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.12

In the use of ‘head’

Check warning on line 77 in lib/Language/Haskell/Stylish/Step/LanguagePragmas.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.10

In the use of ‘head’

Check warning on line 77 in lib/Language/Haskell/Stylish/Step/LanguagePragmas.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.12

In the use of ‘head’
]
<> [ " , " <> pragma | pragma <- tail pragmas']

Check warning on line 79 in lib/Language/Haskell/Stylish/Step/LanguagePragmas.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.10

In the use of ‘tail’

Check warning on line 79 in lib/Language/Haskell/Stylish/Step/LanguagePragmas.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.12

In the use of ‘tail’

Check warning on line 79 in lib/Language/Haskell/Stylish/Step/LanguagePragmas.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.10

In the use of ‘tail’

Check warning on line 79 in lib/Language/Haskell/Stylish/Step/LanguagePragmas.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.12

In the use of ‘tail’
<> [ " #-}"]


Expand Down Expand Up @@ -198,5 +198,5 @@

getMatchStrict :: GHC.Match GHC.GhcPs (GHC.LHsExpr GHC.GhcPs) -> [()]
getMatchStrict (GHC.Match _ ctx _ _) = case ctx of
GHC.FunRhs _ _ GHC.SrcStrict -> [()]
_ -> []
GHC.FunRhs _ _ GHC.SrcStrict _ -> [()]
_ -> []
16 changes: 8 additions & 8 deletions lib/Language/Haskell/Stylish/Step/ModuleHeader.hs
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@ printModuleHeader maxCols conf ls lmodul =
loc <- GHC.getLocA <$> GHC.hsmodExports modul
GHC.srcSpanEndLine <$> GHC.srcSpanToRealSrcSpan loc)

keywordLine kw = listToMaybe $ do
keywordLine kw = do
GHC.EpAnn {..} <- pure $ GHC.hsmodAnn $ GHC.hsmodExt modul
GHC.AddEpAnn kw' (GHC.EpaSpan (GHC.RealSrcSpan s _)) <- GHC.am_main anns
guard $ kw == kw'
pure $ GHC.srcSpanEndLine s
case kw anns of
GHC.EpTok (GHC.EpaSpan (GHC.RealSrcSpan s _)) -> Just . GHC.srcSpanEndLine $ s
_ -> Nothing

moduleLine = keywordLine GHC.AnnModule
whereLine = keywordLine GHC.AnnWhere
moduleLine = keywordLine GHC.am_mod
whereLine = keywordLine GHC.am_where

commentOnLine l = listToMaybe $ do
comment <- epAnnComments $ GHC.hsmodAnn $ GHC.hsmodExt modul
guard $ GHC.srcSpanStartLine (GHC.anchor $ GHC.getLoc comment) == l
guard $ GHC.srcSpanStartLine (GHC.epaLocationRealSrcSpan $ GHC.getLoc comment) == l
pure comment

moduleComment = moduleLine >>= commentOnLine
Expand Down Expand Up @@ -152,7 +152,7 @@ printHeader conf mbName mbDeprec mbExps mbModuleComment mbWhereComment = do
attachModuleComment
Single | [egroup] <- exports
, not (commentGroupHasComments egroup)
, [(export, _)] <- (cgItems egroup) -> do
, [(export, _)] <- cgItems egroup -> do
printSingleLineExportList conf [export]
attachModuleComment
Inline | [] <- exports -> do
Expand Down
4 changes: 2 additions & 2 deletions lib/Language/Haskell/Stylish/Step/SimpleAlign.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--------------------------------------------------------------------------------
import Data.Either (partitionEithers)
import Data.Foldable (toList)
import Data.List (foldl', foldl1', sortOn)

Check warning on line 15 in lib/Language/Haskell/Stylish/Step/SimpleAlign.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.10

The import of ‘foldl'’ from module ‘Data.List’ is redundant

Check warning on line 15 in lib/Language/Haskell/Stylish/Step/SimpleAlign.hs

View workflow job for this annotation

GitHub Actions / Build on ubuntu-latest with GHC 9.12

The import of ‘foldl'’ from module ‘Data.List’ is redundant

Check warning on line 15 in lib/Language/Haskell/Stylish/Step/SimpleAlign.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.10

The import of ‘foldl'’ from module ‘Data.List’ is redundant

Check warning on line 15 in lib/Language/Haskell/Stylish/Step/SimpleAlign.hs

View workflow job for this annotation

GitHub Actions / Build on macOS-latest with GHC 9.12

The import of ‘foldl'’ from module ‘Data.List’ is redundant
import Data.Maybe (fromMaybe)
import qualified GHC.Hs as Hs
import qualified GHC.Parser.Annotation as GHC
Expand Down Expand Up @@ -112,7 +112,7 @@
matchToAlignable
:: GHC.LocatedA (Hs.Match Hs.GhcPs (Hs.LHsExpr Hs.GhcPs))
-> Maybe (Either (Alignable GHC.RealSrcSpan) (Alignable GHC.RealSrcSpan))
matchToAlignable (GHC.L matchLoc m@(Hs.Match _ Hs.CaseAlt pats@(_ : _) grhss)) = do
matchToAlignable (GHC.L matchLoc m@(Hs.Match _ Hs.CaseAlt (GHC.L _ pats@(_ : _)) grhss)) = do
let patsLocs = map GHC.getLocA pats
pat = last patsLocs
guards = getGuards m
Expand All @@ -128,7 +128,7 @@
, aRight = rightPos
, aRightLead = length "-> "
}
matchToAlignable (GHC.L matchLoc (Hs.Match _ (Hs.FunRhs name _ _) pats@(_ : _) grhss)) = do
matchToAlignable (GHC.L matchLoc (Hs.Match _ (Hs.FunRhs name _ _ _) (GHC.L _ pats@(_ : _)) grhss)) = do
body <- unguardedRhsBody grhss
let patsLocs = map GHC.getLocA pats
nameLoc = GHC.getLocA name
Expand Down
23 changes: 11 additions & 12 deletions lib/Language/Haskell/Stylish/Step/Squash.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
--------------------------------------------------------------------------------
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE RecordWildCards #-}
Expand All @@ -9,7 +10,6 @@ module Language.Haskell.Stylish.Step.Squash


--------------------------------------------------------------------------------
import Data.Maybe (listToMaybe)
import qualified GHC.Hs as GHC
import qualified GHC.Types.SrcLoc as GHC

Expand Down Expand Up @@ -45,10 +45,9 @@ squashFieldDecl _ = mempty


--------------------------------------------------------------------------------
fieldDeclSeparator :: [GHC.AddEpAnn]-> Maybe GHC.RealSrcSpan
fieldDeclSeparator anns = listToMaybe $ do
GHC.AddEpAnn GHC.AnnDcolon (GHC.EpaSpan (GHC.RealSrcSpan s _)) <- anns
pure s
fieldDeclSeparator :: GHC.EpUniToken "::" "\8759" -> Maybe GHC.RealSrcSpan
fieldDeclSeparator (GHC.EpUniTok (GHC.EpaSpan (GHC.RealSrcSpan s _)) _) = Just s
fieldDeclSeparator _ = Nothing


--------------------------------------------------------------------------------
Expand All @@ -65,23 +64,23 @@ squashMatch lmatch = case GHC.m_grhss match of
where
match = GHC.unLoc lmatch
mbLeft = case match of
GHC.Match _ (GHC.FunRhs name _ _) [] _ ->
GHC.Match _ (GHC.FunRhs name _ _ _ ) (GHC.L _ []) _ ->
GHC.srcSpanToRealSrcSpan $ GHC.getLocA name
GHC.Match _ _ pats@(_ : _) _ ->
GHC.Match _ _ (GHC.L _ pats@(_ : _)) _ ->
GHC.srcSpanToRealSrcSpan . GHC.getLocA $ last pats
_ -> Nothing


--------------------------------------------------------------------------------
matchSeparator :: GHC.EpAnn GHC.GrhsAnn -> Maybe GHC.RealSrcSpan
matchSeparator GHC.EpAnn {..}
| GHC.AddEpAnn _ (GHC.EpaSpan (GHC.RealSrcSpan s _)) <- GHC.ga_sep anns = Just s
matchSeparator _ = Nothing

matchSeparator GHC.EpAnn {..} = case GHC.ga_sep anns of
Left (GHC.EpTok (GHC.EpaSpan (GHC.RealSrcSpan s _))) -> Just s
Right (GHC.EpUniTok (GHC.EpaSpan (GHC.RealSrcSpan s _)) _) -> Just s
_ -> Nothing

--------------------------------------------------------------------------------
step :: Step
step = makeStep "Squash" $ \ls (module') ->
step = makeStep "Squash" $ \ls module' ->
let changes =
foldMap squashFieldDecl (everything module') <>
foldMap squashMatch (everything module') in
Expand Down
4 changes: 2 additions & 2 deletions lib/Language/Haskell/Stylish/Step/UnicodeSyntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ hsTyReplacements (GHC.HsFunTy _ arr _ _)
Editor.replaceRealSrcSpan (GHC.epaLocationRealSrcSpan epaLoc) "→"
hsTyReplacements (GHC.HsQualTy _ ctx _)
| Just arrow <- GHC.ac_darrow . GHC.anns $ GHC.getLoc ctx
, (GHC.NormalSyntax, GHC.EpaSpan (GHC.RealSrcSpan loc _)) <- arrow =
, (GHC.EpUniTok (GHC.EpaSpan (GHC.RealSrcSpan loc _)) GHC.NormalSyntax) <- arrow =
Editor.replaceRealSrcSpan loc "⇒"
hsTyReplacements _ = mempty


--------------------------------------------------------------------------------
hsSigReplacements :: GHC.Sig GHC.GhcPs -> Editor.Edits
hsSigReplacements (GHC.TypeSig ann _ _)
| GHC.AddEpAnn GHC.AnnDcolon epaLoc <- GHC.asDcolon ann
| GHC.EpUniTok epaLoc _ <- GHC.asDcolon ann
, GHC.EpaSpan (GHC.RealSrcSpan loc _) <- epaLoc =
Editor.replaceRealSrcSpan loc "∷"
hsSigReplacements _ = mempty
Expand Down
10 changes: 5 additions & 5 deletions stylish-haskell.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Common depends

Build-depends:
aeson >= 0.6 && < 2.3,
base >= 4.8 && < 5,
base >= 4.19 && < 5,
bytestring >= 0.9 && < 0.13,
Cabal >= 3.10 && < 4.0,
containers >= 0.3 && < 0.9,
Expand All @@ -59,17 +59,17 @@ Common depends
-- and we have a new enough GHC. Note that
-- this will only work if the user's
-- compiler is of the matching major version!
if !flag(ghc-lib) && impl(ghc >= 9.8) && impl(ghc < 9.11)
if !flag(ghc-lib) && impl(ghc >= 9.8) && impl(ghc < 9.13)
Build-depends:
ghc >= 9.10 && < 9.11,
ghc >= 9.12 && < 9.13,
ghc-boot,
ghc-boot-th
else
Build-depends:
ghc-lib-parser >= 9.10 && < 9.11
ghc-lib-parser >= 9.12 && < 9.13

Build-depends:
ghc-lib-parser-ex >= 9.10 && < 9.11
ghc-lib-parser-ex >= 9.12 && < 9.13

Library
Import: depends
Expand Down
Loading