[GHC] #9167: Associated type is accepted even without mentioning class parameters
GHC
ghc-devs at haskell.org
Wed Jun 4 13:32:20 UTC 2014
#9167: Associated type is accepted even without mentioning class parameters
------------------------------------+-------------------------------------
Reporter: goldfire | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 7.8.2
Keywords: | Operating System: Unknown/Multiple
Architecture: Unknown/Multiple | Type of failure: None/Unknown
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: |
------------------------------------+-------------------------------------
The following module is accepted:
{{{
{-# LANGUAGE TypeFamilies #-}
module Bug where
class C a where
type F b
}}}
Note that the associate type family `F` does not mention the class
variable `a`. Because associated type families are somewhat thin sugar
over non-associated type families, I doubt this causes any great disaster
anywhere, but it should probably be fixed.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9167>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list