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

Brandon Chinn (@brandonchinn178) gitlab at gitlab.haskell.org
Sat Jan 4 19:50:52 UTC 2025



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


Commits:
edb77435 by Brandon Chinn at 2025-01-04T11:50:41-08:00
Require alex >= 3.5.2 (#25623)

- - - - -


2 changed files:

- compiler/GHC/Parser/Lexer.x
- compiler/ghc.cabal.in


Changes:

=====================================
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)



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/edb77435a2c589aeb4e73b05beaba418192db52f
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/b075afcf/attachment-0001.html>


More information about the ghc-commits mailing list