Skip to content

Use wherefrom-compat - #49

Merged
coot merged 1 commit into
input-output-hk:masterfrom
TeofilC:wip/wherefrom-compat
Feb 6, 2024
Merged

coot merged 1 commit into
input-output-hk:masterfrom
TeofilC:wip/wherefrom-compat

Conversation

@TeofilC

@TeofilC TeofilC commented Feb 1, 2024

Copy link
Copy Markdown
Contributor

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

@coot coot left a comment

Copy link
Copy Markdown
Contributor

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).

Comment thread nothunks.cabal 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
TeofilC force-pushed the wip/wherefrom-compat branch from 13b20ab to 99872f3 Compare February 3, 2024 19:02
@TeofilC

TeofilC commented Feb 3, 2024

Copy link
Copy Markdown
Contributor Author

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

@coot coot left a comment

Copy link
Copy Markdown
Contributor

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
@TeofilC

TeofilC commented Feb 6, 2024

Copy link
Copy Markdown
Contributor Author

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.

2 participants