Make Control.Exception.throw levity polymorphic
The error function has a levity-polymorphic type. I propose that the same be done for throw. I just encountered a situation where I needed this, and instead of calling throw x, I had to call raise# (toException x) because throw is unnecessarily restrictive.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.2.2 |
| Type | Task |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |