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

Use wherefrom-compat #49

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

TeofilC
Copy link
Contributor

@TeofilC TeofilC commented Feb 1, 2024

This provides a compatibility shim around the wherefrom function allowing a stable interface to be used for more versions of GHC.

In particular it should insulate users of the library from future breaking changes.

A nice upside is that it allows using whereFrom when it was first introduced rather than when it moved to GHC.InfoProv.

I've added a cabal flag, so the solver can still pick versions of base before whereFrom existed

Copy link
Contributor

@coot coot left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution. This will actually extend the support of wherefrom to ghc-9.4 and ghc-9.2 (I made a mistake in the README / CHANGELOG, which needs to be fixed too).

nothunks.cabal Outdated Show resolved Hide resolved
This provides a compatibility shim around the wherefrom function allowing a stable interface to be used for more versions of GHC.

In particular it should insulate users of the library from future breaking changes
@TeofilC
Copy link
Contributor Author

TeofilC commented Feb 3, 2024

I've removed the flag and updated the README to say that we only need GHC 9.2 or newer

Copy link
Contributor

@coot coot left a comment

Choose a reason for hiding this comment

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

Could you also update CHANGELOG.md file?

@coot coot added this pull request to the merge queue Feb 6, 2024
Merged via the queue into input-output-hk:master with commit ea6f0e8 Feb 6, 2024
6 of 7 checks passed
@TeofilC
Copy link
Contributor Author

TeofilC commented Feb 6, 2024

Thanks for merging and handling the changelog!

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.

None yet

2 participants