Skip to content

Commit

Permalink
fix happy to 1.20.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shayne-fletcher committed Sep 20, 2024
1 parent cff092b commit 229094d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ghc-lib-gen.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ executable ghc-lib-gen

executable ghc-lib-build-tool
import: base
build-tool-depends: alex:alex, happy:happy
build-tool-depends: alex:alex, happy:happy < 2.0
build-depends:
directory, filepath, time, extra, optparse-applicative
if flag(semaphore-compat)
Expand Down
4 changes: 2 additions & 2 deletions ghc-lib-gen/src/Ghclibgen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ generateGhcLibCabal ghcFlavor customCppOpts = do
" build-depends:"
],
indent2 (Data.List.NonEmpty.toList (withCommas (ghcLibBuildDepends ghcFlavor))),
[" build-tool-depends: alex:alex >= 3.1, " ++ "happy:happy > " ++ if ghcSeries ghcFlavor < GHC_8_10 then "1.19" else "1.20"],
[" build-tool-depends: alex:alex >= 3.1, " ++ "happy:happy > " ++ if ghcSeries ghcFlavor < GHC_8_10 then "1.19" else "1.20" ++ " && < 2.0"],
[" other-extensions:"],
indent2 (askField lib "other-extensions:"),
[" default-extensions:"],
Expand Down Expand Up @@ -1464,7 +1464,7 @@ generateGhcLibParserCabal ghcFlavor customCppOpts = do
[ " if impl(ghc >= 9.10)",
" build-depends: ghc-internal"
],
[" build-tool-depends: alex:alex >= 3.1, " ++ "happy:happy > " ++ if ghcSeries ghcFlavor < GHC_8_10 then "1.19" else "1.20"],
[" build-tool-depends: alex:alex >= 3.1, " ++ "happy:happy > " ++ if ghcSeries ghcFlavor < GHC_8_10 then "1.19" else "1.20" ++ " && < 2.0"],
[" other-extensions:"],
indent2 (askField lib "other-extensions:"),
[" default-extensions:"],
Expand Down

0 comments on commit 229094d

Please sign in to comment.