Ticket #7272 (closed bug: fixed)
PolyKinds and mutually recursive modules
| Reported by: | dreixel | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.6.2 |
| Component: | Compiler | Version: | 7.6.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | polykinds/T7272 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
A.hs
{-# LANGUAGE PolyKinds #-}
module A where
import Test
class C (a :: k)
A.hs-boot
{-# LANGUAGE PolyKinds #-}
module A where
class C (a :: k)
B.hs
{-# LANGUAGE PolyKinds #-}
module Test where
import {-# SOURCE #-} A
Leads to:
A.hs-boot:5:7:
Class `C' has conflicting definitions in the module and its hs-boot file
Main module: class C (k::BOX) (a::k) RecFlag Recursive
Boot file: class C (k::BOX) (a::k) RecFlag NonRecursive
The problem is not the RecFlag, it's the k kind variable that is getting different uniques.
Change History
Note: See
TracTickets for help on using
tickets.
