Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Role annotation for TypeRepMap (#113)
Before this patch, GHC inferred the phantom role and allowed the user to implement unsafeCoerce via TypeRepMap: unsafeCoerceTRM :: a -> b unsafeCoerceTRM a = b where Just (Const b) = TRM.lookup @() (coerce (TRM.one @() (Const a)))
- Loading branch information