Weird scoping for tyvars in rules
This rule:
{-# RULES "id" forall (x :: a). id x = x #-}
compiles fine with no LANGUAGE options but fails if I add Rank2Types:
Not in scope: type variable `a'
It compiles fine again if I additionally include ScopedTypeVariables. This looks wrong to me.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |