Ticket #2497 (closed merge: fixed)
Weird scoping for tyvars in rules
| Reported by: | rl | Owned by: | igloo |
|---|---|---|---|
| Priority: | high | Milestone: | 6.10.1 |
| Component: | Compiler | Version: | 6.8.3 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | typecheck/should_compile/T2497 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
