Skip to content

Commit

Permalink
alex < 3.5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shayne-fletcher committed Dec 31, 2024
1 parent 4aa72b9 commit 849169f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ghc-lib-gen.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ executable ghc-lib-gen
executable ghc-lib-build-tool
import: base
if impl (ghc > 9.12.0)
build-tool-depends: alex:alex, happy:happy == 1.20.* || == 2.0.2 || >= 2.1.2 && < 2.2
build-tool-depends: alex:alex < 3.5.2.0, happy:happy == 1.20.* || == 2.0.2 || >= 2.1.2 && < 2.2
else
build-tool-depends: alex:alex, happy:happy < 2.0
build-tool-depends: alex:alex < 3.5.2.0, happy:happy < 2.0
build-depends:
directory, filepath, time, extra, optparse-applicative
if flag(semaphore-compat)
Expand Down
2 changes: 1 addition & 1 deletion ghc-lib-gen/src/Ghclibgen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ libBinParserLibModules ghcFlavor = do

happyBounds :: GhcFlavor -> String
happyBounds ghcFlavor
| series < GHC_9_8 = "== 1.20.*"
| series < GHC_9_8 = "< 1.21"
| otherwise = "== 1.20.* || == 2.0.2 || >= 2.1.2 && < 2.2" -- c.f. m4/fptools_happy.m4
where
series = ghcSeries ghcFlavor
Expand Down

0 comments on commit 849169f

Please sign in to comment.