Skip to content

Deprecate reexports of unsafe functions defined in Unsafe modules#561

Merged
Shimuuar merged 5 commits into
masterfrom
unsafe-stage-2
Jun 23, 2026
Merged

Deprecate reexports of unsafe functions defined in Unsafe modules#561
Shimuuar merged 5 commits into
masterfrom
unsafe-stage-2

Conversation

@Shimuuar

@Shimuuar Shimuuar commented May 3, 2026

Copy link
Copy Markdown
Contributor

This is partial (only Primitive modules) implementation of stage 2 of plan described in #540 (comment) Once we're happy with implementation for primitive we can replicate it for other unsafe functions.

Deprecation of reexports was introduced in GHC9.8 so we have to define new functions to deprecate. Haddocks for deprecated reexports looks like this:
image

Shimuuar added 3 commits May 3, 2026 16:31
Deprecation of reexports was introduced in GHC9.8 so we have to define new
functions to deprecate
It was forgotten by mistake
@Shimuuar Shimuuar marked this pull request as ready for review June 23, 2026 15:25
Make sure that DEPRECATED messages point to correct module
and all unsafe functions are marked as deprecated
@Shimuuar

Copy link
Copy Markdown
Contributor Author

I think this PR is ready for review. @lehins do you have any objections?

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

LGTM 👍

@Shimuuar Shimuuar merged commit fd2ebe1 into master Jun 23, 2026
22 checks passed
@Shimuuar Shimuuar deleted the unsafe-stage-2 branch June 23, 2026 16:01
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