Zubin pushed to branch wip/9.12.3-backports at Glasgow Haskell Compiler / GHC
Commits:
-
91047c03
by Brandon Chinn at 2025-09-11T17:58:18+05:30
1 changed file:
Changes:
| ... | ... | @@ -41,6 +41,7 @@ |
| 41 | 41 | -- Alex "Haskell code fragment top"
|
| 42 | 42 | |
| 43 | 43 | {
|
| 44 | +{-# LANGUAGE CPP #-}
|
|
| 44 | 45 | {-# LANGUAGE ViewPatterns #-}
|
| 45 | 46 | {-# LANGUAGE LambdaCase #-}
|
| 46 | 47 | {-# LANGUAGE MultiWayIf #-}
|
| ... | ... | @@ -3370,11 +3371,15 @@ topNoLayoutContainsCommas [] = False |
| 3370 | 3371 | topNoLayoutContainsCommas (ALRLayout _ _ : ls) = topNoLayoutContainsCommas ls
|
| 3371 | 3372 | topNoLayoutContainsCommas (ALRNoLayout b _ : _) = b
|
| 3372 | 3373 | |
| 3374 | +#ifdef MIN_TOOL_VERSION_alex
|
|
| 3375 | +#if !MIN_TOOL_VERSION_alex(3,5,2)
|
|
| 3373 | 3376 | -- If the generated alexScan/alexScanUser functions are called multiple times
|
| 3374 | 3377 | -- in this file, alexScanUser gets broken out into a separate function and
|
| 3375 | 3378 | -- increases memory usage. Make sure GHC inlines this function and optimizes it.
|
| 3376 | 3379 | -- https://github.com/haskell/alex/pull/262
|
| 3377 | 3380 | {-# INLINE alexScanUser #-}
|
| 3381 | +#endif
|
|
| 3382 | +#endif
|
|
| 3378 | 3383 | |
| 3379 | 3384 | lexToken :: P (PsLocated Token)
|
| 3380 | 3385 | lexToken = do
|