[GHC] #10816: Fixity declaration for associated type rejected

#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

#10816: Fixity declaration for associated type rejected -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4077 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => patch * differential: => Phab:D4077 Comment: I ended up stumbling upon this while looking at implementing [https://github.com/ghc-proposals/ghc-proposals/pull/65 this proposal], as the symptom of this ticket (having too many code paths for renaming fixity declarations) also made it annoying to implement the proposal. While Phab:D4077 doesn't implement the proposal in full, it will make it easier to do so later. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10816#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10816: Fixity declaration for associated type rejected
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: (none)
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4077
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ryan Scott

#10816: Fixity declaration for associated type rejected -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.4.1 Component: Compiler | Version: 7.10.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | testsuite/rename/should_compile/T10816 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4077 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * testcase: => testsuite/rename/should_compile/T10816 * status: patch => closed * resolution: => fixed * milestone: => 8.4.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10816#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC