[GHC] #9167: Associated type is accepted even without mentioning class parameters
GHC
ghc-devs at haskell.org
Mon Jun 9 16:38:03 UTC 2014
#9167: Associated type is accepted even without mentioning class parameters
-------------------------------------------------+-------------------------
Reporter: goldfire | Owner:
Type: bug | Status:
Priority: low | closed
Component: Compiler | Milestone:
Resolution: fixed | Version: 7.8.2
Operating System: Unknown/Multiple | Keywords:
Type of failure: None/Unknown | Architecture:
Test Case: | Unknown/Multiple
indexed_types/should_fail/T9167 | Difficulty:
Blocking: | Unknown
| Blocked By:
| Related Tickets:
-------------------------------------------------+-------------------------
Comment (by archblob):
The error message now says
{{{
The associated type ‘F’
mentions none of the type variables of the class ‘C k a’
In the class declaration for ‘C’
}}}
but
{{{#!haskell
class C (a :: k) where
type F (b :: k)
}}}
is accepted although none of the class type variables are mentioned in the
definition for `F` . If this is the intended behavior maybe the error
message should say type or kind variables.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9167#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list