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

Support building with mtl-2.3.* (GHC 9.6) #9

Merged
merged 2 commits into from
Jun 28, 2023
Merged

Support building with mtl-2.3.* (GHC 9.6) #9

merged 2 commits into from
Jun 28, 2023

Conversation

RyanGlScott
Copy link
Contributor

mtl-2.3.* no longer re-exports Control.Monad from Control.Monad.State, which breaks some code in hobbits. This is easily fixed by tightening up the imports a bit.

`mtl-2.3.*` no longer re-exports `Control.Monad` from `Control.Monad.State`,
which breaks some code in `hobbits`. This is easily fixed by tightening up the
imports a bit.
On GHC 8.6 or later, `TypeInType` is simply an alias for `DataKinds` +
`PolyKinds`.  What's more, `TypeInType` emits deprecation warnings with GHC 9.6
or later, so this patch guards the use of `TypeInType` behind CPP to avoid the
warnings.
Copy link
Owner

@eddywestbrook eddywestbrook left a comment

Choose a reason for hiding this comment

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

Thanks Ryan!

@eddywestbrook eddywestbrook merged commit 5fc80ff into eddywestbrook:master Jun 28, 2023
RyanGlScott added a commit to GaloisInc/saw-script that referenced this pull request Nov 20, 2023
Making SAW build with GHC 9.6 is almost entirely a matter of being more precise
with `mtl`-related imports to account for `mtl-2.3.1` not re-exporting as many
identifiers from `Control.Monad`, `Control.Monad.IO.Class`, etc.

I have also bumped the following submodules and `source-repository-package`s to
allow them to build with GHC 9.6:

* `cryptol`: GaloisInc/cryptol#1572
* `hobbits`: eddywestbrook/hobbits#9
RyanGlScott added a commit to GaloisInc/saw-script that referenced this pull request Nov 20, 2023
Making SAW build with GHC 9.6 is almost entirely a matter of being more precise
with `mtl`-related imports to account for `mtl-2.3.1` not re-exporting as many
identifiers from `Control.Monad`, `Control.Monad.IO.Class`, etc.

I have also bumped the following submodules and `source-repository-package`s to
allow them to build with GHC 9.6:

* `cryptol`: GaloisInc/cryptol#1572
* `hobbits`: eddywestbrook/hobbits#9
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.

2 participants