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

Resolve ghc 9.2 warnings #585

Merged
merged 4 commits into from
Aug 4, 2023
Merged

Conversation

quark17
Copy link
Collaborator

@quark17 quark17 commented Aug 2, 2023

This resolves most of the incomplete-pattern warnings that occurred when building with GHC 9.2.8 (Issue #469). This also adds examples for SV-preprocessor issues that were revealed by the warnings (Issue #584). That seems to be the only area where the warnings were an indication of an issue.

This resolves most but not all warnings.  See GitHub issue 469.
In version 2.3 of the mtl library, re-export of other modules was
removed; so now those other modules need to be imported, if functions
from them are needed.  To avoid duplicate import when compiling with
earlier mtl/GHC versions, the import statements need to explicitly
list the functions imported from each module.
This abstraction was added to support building with GHC 7.10 (which
uses Control.Monad.Except) and older versions (which still used
Control.Monad.Error), without having to introduce CPP directives
everywhere.  Since we no longer support those earlier GHC versions,
there is no need for this API.
@quark17
Copy link
Collaborator Author

quark17 commented Aug 4, 2023

I have added two more commits. One gets BSC to compile with GHC 9.6, by addressing changes in the Control.Monad libraries. The other removes an old abstraction (ErrorTCompat) that hasn't been needed since we dropped support for GHC earlier than 8.

@quark17 quark17 merged commit 2285a7f into B-Lang-org:main Aug 4, 2023
28 checks passed
@quark17 quark17 deleted the resolve-ghc-9.2-warnings branch August 4, 2023 22:29
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