Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
6886 commits behind the upstream repository.
Matthew Pickering's avatar
Matthew Pickering authored
Ticket #23454 explained it was possible to implement unsafeCoerce
because SNat was lacking a role annotation.

As these are supposed to be singleton types but backed by an efficient
representation the correct annotation is nominal to ensure these kinds
of coerces are forbidden.

These annotations were missed from https://github.com/haskell/core-libraries-committee/issues/85
which was implemented in 532de368.

CLC Proposal: https://github.com/haskell/core-libraries-committee/issues/170

Fixes #23454
4639100b
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.