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

Remove GHCi specific hints from GHC error messages #150

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

sol
Copy link
Member

@sol sol commented Jan 25, 2025

This ensures that we get less verbose error message with GHC 9.10 and later.

For example, instead of

test/assets/use-BlockArguments/Foo.hs:5:10: error: [GHC-52095]
    Unexpected do block in function application:
        do return ()
    Suggested fixes:
      • Use parentheses.
      • Perhaps you intended to use BlockArguments
        You may enable this language extension in GHCi with:
          :set -XBlockArguments

sensei will produce

test/assets/use-BlockArguments/Foo.hs:5:10: error: [GHC-52095]
    Unexpected do block in function application:
        do return ()
    Suggested fixes:
      • Use parentheses.
      • Perhaps you intended to use BlockArguments

@sol sol requested a review from mklinik January 25, 2025 11:02
@sol sol enabled auto-merge (rebase) January 25, 2025 11:05
@sol sol merged commit 6a0d7b2 into main Jan 25, 2025
6 checks passed
@sol sol deleted the remove-ghci-specific-hints branch January 25, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant