[GHC] #10816: Fixity declaration for associated type rejected
GHC
ghc-devs at haskell.org
Mon Aug 31 06:31:54 UTC 2015
#10816: Fixity declaration for associated type rejected
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Revisions: |
-------------------------------------+-------------------------------------
When I say
{{{
{-# LANGUAGE TypeOperators, TypeFamilies #-}
module Bug where
class C a where
type a # b
infix 4 #
}}}
I get
{{{
Bug.hs:7:11: ‘#’ is not a (visible) method of class ‘C’
}}}
But it really should just assign a fixity to the type `#`. It works if the
fixity declaration is outside of the class.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10816>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list