Repository navigation
Replace undefined with more descriptive error - #262
Merged
Merged
Conversation
andreasabel
reviewed
Dec 29, 2024
andreasabel
left a comment
Member
There was a problem hiding this comment.
Thanks!
Would it be possible to add a reproducer?
Contributor
Author
|
@andreasabel How's that? |
Member
|
Thanks! Somehow the testsuite fails:
|
Member
|
Hopefully adding the missing |
Member
|
https://github.com/haskell/alex/actions/runs/12548981514/job/34989207762?pr=262#step:9:111
|
Member
|
Released as 3.5.2.0. |
netbsd-srcmastr
pushed a commit
to NetBSD/pkgsrc
that referenced
this pull request
Jan 13, 2025
## Changes in 3.5.2.0 * Use `byteSwap16#` and `byteSwap32#` on big-endian architectures instead of handrolling the implementation ([PR #260](haskell/alex#260)). * More descriptive error in `alexScan`; inline `alexScanUser` ([PR #262](haskell/alex#262)). * Tested with GHC 8.0 - 9.12.1.
hubot
pushed a commit
to ghc/ghc
that referenced
this pull request
Jan 21, 2025
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
hubot
pushed a commit
to ghc/ghc
that referenced
this pull request
Jan 22, 2025
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
hubot
pushed a commit
to ghc/ghc
that referenced
this pull request
Jan 23, 2025
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
hubot
pushed a commit
to ghc/ghc
that referenced
this pull request
Jan 24, 2025
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
hubot
pushed a commit
to ghc/ghc
that referenced
this pull request
Jan 24, 2025
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
hubot
pushed a commit
to ghc/ghc
that referenced
this pull request
Jan 25, 2025
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
hubot
pushed a commit
to ghc/ghc
that referenced
this pull request
Jan 25, 2025
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
hubot
pushed a commit
to ghc/ghc
that referenced
this pull request
Jan 25, 2025
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12
TerrorJack
pushed a commit
to haskell-wasm/ghc
that referenced
this pull request
Apr 6, 2025
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12 (cherry picked from commit a1d9237)
bgamari
pushed a commit
to ghc/ghc
that referenced
this pull request
Sep 11, 2025
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12 (cherry picked from commit a1d9237)
bgamari
pushed a commit
to ghc/ghc
that referenced
this pull request
Sep 12, 2025
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12 (cherry picked from commit a1d9237)
msk
pushed a commit
to msk/pkgsrc
that referenced
this pull request
May 11, 2026
## Changes in 3.5.2.0 * Use `byteSwap16#` and `byteSwap32#` on big-endian architectures instead of handrolling the implementation ([PR #260](haskell/alex#260)). * More descriptive error in `alexScan`; inline `alexScanUser` ([PR #262](haskell/alex#262)). * Tested with GHC 8.0 - 9.12.1.
jperkin
pushed a commit
to TritonDataCenter/pkgsrc
that referenced
this pull request
May 14, 2026
## Changes in 3.5.2.0 * Use `byteSwap16#` and `byteSwap32#` on big-endian architectures instead of handrolling the implementation ([PR #260](haskell/alex#260)). * More descriptive error in `alexScan`; inline `alexScanUser` ([PR #262](haskell/alex#262)). * Tested with GHC 8.0 - 9.12.1.
tsutsui
pushed a commit
to tsutsui/pkgsrc
that referenced
this pull request
Oct 17, 2026
## Changes in 3.5.2.0 * Use `byteSwap16#` and `byteSwap32#` on big-endian architectures instead of handrolling the implementation ([PR #260](haskell/alex#260)). * More descriptive error in `alexScan`; inline `alexScanUser` ([PR #262](haskell/alex#262)). * Tested with GHC 8.0 - 9.12.1.
bgamari
pushed a commit
to ghc/ghc
that referenced
this pull request
Oct 27, 2026
This INLINE pragma for alexScanUser was added in 9.12, but then I ported the change to alex in 3.5.2.0 (haskell/alex#262). I didn't realize that GHC errors on duplicate INLINE pragmas, so this ended up being a breaking change. This change should be backported into 9.12 (cherry picked from commit a1d9237)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If this error is thrown, it's difficult to debug: https://gitlab.haskell.org/ghc/ghc/-/issues/25609