Commit ac31991
ci: constrain megaparsec < 9.8 on GHC < 9.10
CI builds recently started failing on GHC 8.8–9.8 with:
Text/Megaparsec/Stream.hs:517:26: error:
Variable not in scope: foldl'
Failed to build megaparsec-9.8.0
megaparsec-9.8.0 uses an unqualified `foldl'`, which is only re-exported
from Prelude as of base-4.20 (GHC 9.10). Because CI runs `cabal v2-freeze`
fresh on every run (no committed freeze file), it floats to the newest
Hackage release, and 9.8.0 fails to compile on every GHC below 9.10.
Pin megaparsec < 9.8 for those compilers via a project conditional; GHC
9.10+ continue to use 9.8.0, which builds there without issue.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 855c20c commit ac31991
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
0 commit comments