Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the build with alex-3.2.7.2 #1855

Merged
merged 1 commit into from
Apr 13, 2023
Merged

Fix the build with alex-3.2.7.2 #1855

merged 1 commit into from
Apr 13, 2023

Conversation

RyanGlScott
Copy link
Contributor

alex-3.2.7.2 generates code that uses PatternGuards, but because saw-core does not specify a default-language in its .cabal file, it defaults to Haskell98, which does not include PatternGuards. Arguably, we should make saw-core's default-language be Haskell2010 (which does include PatternGuards), but that would be a somewhat larger change. For the sake of restoring the build, this applies the simplest possible fix of enabling PatternGuards in the affected file.

Fixes #1854.

`alex-3.2.7.2` generates code that uses `PatternGuards`, but because `saw-core`
does not specify a `default-language` in its `.cabal` file, it defaults to
`Haskell98`, which does not include `PatternGuards`. Arguably, we should make
`saw-core`'s `default-language` be `Haskell2010` (which _does_ include
`PatternGuards`), but that would be a somewhat larger change. For the sake of
restoring the build, this applies the simplest possible fix of enabling
`PatternGuards` in the affected file.

Fixes #1854.
@ramsdell
Copy link

Thank you for your quick action on this problem.

Copy link
Contributor

@chameco chameco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RyanGlScott RyanGlScott added the PR: ready to merge Magic flag for pull requests to ask Mergify to merge given an approval and a successful CI run label Apr 13, 2023
@mergify mergify bot merged commit 239c500 into master Apr 13, 2023
@mergify mergify bot deleted the T1854 branch April 13, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: ready to merge Magic flag for pull requests to ask Mergify to merge given an approval and a successful CI run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SAW compilation failure with GHC 9.2.7
3 participants