Warn about unnecessary unsafeCoerce
unsafeCoerce has been around a lot longer than coerce, so older code tends to use it even if coerce could do the job. It would be nice if the type checker could produce a warning when it detected such a situation.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.9 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (Type checker) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |