Skip to content

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

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

2 participants