[Git][ghc/ghc][wip/T25623] Require alex >= 3.5.2 (#25623)

Brandon Chinn (@brandonchinn178) gitlab at gitlab.haskell.org
Sat Jan 4 22:34:27 UTC 2025



Brandon Chinn pushed to branch wip/T25623 at Glasgow Haskell Compiler / GHC


Commits:
2182e044 by Brandon Chinn at 2025-01-04T14:34:00-08:00
Require alex >= 3.5.2 (#25623)

- - - - -


4 changed files:

- .gitlab/ci.sh
- compiler/GHC/Parser/Lexer.x
- compiler/ghc.cabal.in
- hadrian/cabal.project


Changes:

=====================================
.gitlab/ci.sh
=====================================
@@ -8,9 +8,9 @@ set -Eeuo pipefail
 
 # Configuration:
 # N.B. You may want to also update the index-state in hadrian/cabal.project.
-HACKAGE_INDEX_STATE="2024-10-30T22:56:00Z"
+HACKAGE_INDEX_STATE="2025-01-04T21:29:42Z"
 MIN_HAPPY_VERSION="1.20"
-MIN_ALEX_VERSION="3.2.6"
+MIN_ALEX_VERSION="3.5.2.0"
 
 TOP="$(pwd)"
 if [ ! -d "$TOP/.gitlab" ]; then


=====================================
compiler/GHC/Parser/Lexer.x
=====================================
@@ -3467,11 +3467,6 @@ topNoLayoutContainsCommas [] = False
 topNoLayoutContainsCommas (ALRLayout _ _ : ls) = topNoLayoutContainsCommas ls
 topNoLayoutContainsCommas (ALRNoLayout b _ : _) = b
 
--- If the generated alexScan/alexScanUser functions are called multiple times
--- in this file, alexScanUser gets broken out into a separate function and
--- increases memory usage. Make sure GHC inlines this function and optimizes it.
-{-# INLINE alexScanUser #-}
-
 lexToken :: P (PsLocated Token)
 lexToken = do
   inp@(AI loc1 buf) <- getInput


=====================================
compiler/ghc.cabal.in
=====================================
@@ -102,7 +102,7 @@ Library
               FunTypes.h
 
     if flag(build-tool-depends)
-      build-tool-depends: alex:alex >= 3.2.6, happy:happy >= 1.20.0, genprimopcode:genprimopcode, deriveConstants:deriveConstants
+      build-tool-depends: alex:alex >= 3.5.2, happy:happy >= 1.20.0, genprimopcode:genprimopcode, deriveConstants:deriveConstants
 
     if flag(with-libzstd)
       if flag(static-libzstd)


=====================================
hadrian/cabal.project
=====================================
@@ -4,7 +4,7 @@ packages: ./
 
 -- This essentially freezes the build plan for hadrian
 -- It would be wise to keep this up to date with the state set in .gitlab/ci.sh.
-index-state: 2024-10-30T22:56:00Z
+index-state: 2025-01-04T21:29:42Z
 
 -- unordered-containers-0.2.20-r1 requires template-haskell < 2.22
 -- ghc-9.10 has template-haskell-2.22.0.0



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2182e0446e0d93ae8e611f201b767b020e01bcb0

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2182e0446e0d93ae8e611f201b767b020e01bcb0
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250104/00f9fbe7/attachment-0001.html>


More information about the ghc-commits mailing list