[GHC] #11173: Infix declarations for record fields with DuplicateRecordFields are broken

#11173: Infix declarations for record fields with DuplicateRecordFields are broken -------------------------------------+------------------------------------- Reporter: kanetw | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: GHC rejects Unknown/Multiple | valid program Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The following program compiles fine {{{#!hs module Good where newtype A = A { foo :: Int } infixl 5 `foo` }}} but this one doesn't {{{#!hs {-# LANGUAGE DuplicateRecordFields #-} module Bad where newtype A = A { foo :: Int } infixl 5 `foo` }}} giving an error {{{ The fixity signature for ‘foo’ lacks an accompanying binding (The fixity signature must be given where ‘foo’ is declared) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11173 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11173: Infix declarations for record fields with DuplicateRecordFields are broken -------------------------------------+------------------------------------- Reporter: kanetw | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: regression Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by hvr): * cc: adamgundry (added) * priority: normal => highest * keywords: => regression * milestone: => 8.0.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11173#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11173: Infix declarations for record fields with DuplicateRecordFields are broken -------------------------------------+------------------------------------- Reporter: kanetw | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by hvr): * priority: highest => high * keywords: regression => Comment: nevermind, not a regression -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11173#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11173: Infix declarations for record fields with DuplicateRecordFields are broken -------------------------------------+------------------------------------- Reporter: kanetw | Owner: adamgundry Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: #11167 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by adamgundry): * owner: => adamgundry * related: => #11167 Comment: I'll take a look at this. I think a similar issue applies to `DEPRECATED` pragmas and possibly other things that are keyed by `OccName`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11173#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11173: Infix declarations for record fields with DuplicateRecordFields are broken -------------------------------------+------------------------------------- Reporter: kanetw | Owner: adamgundry Type: bug | Status: patch Priority: high | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: #11167 | Differential Rev(s): Phab:D1600 Wiki Page: | -------------------------------------+------------------------------------- Changes (by adamgundry): * status: new => patch * differential: => Phab:D1600 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11173#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11173: Infix declarations for record fields with DuplicateRecordFields are broken
-------------------------------------+-------------------------------------
Reporter: kanetw | Owner: adamgundry
Type: bug | Status: patch
Priority: high | Milestone: 8.0.1
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: #11167 | Differential Rev(s): Phab:D1600
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#11173: Infix declarations for record fields with DuplicateRecordFields are broken -------------------------------------+------------------------------------- Reporter: kanetw | Owner: adamgundry Type: bug | Status: closed Priority: high | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: #11167 | Differential Rev(s): Phab:D1600 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11173#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11173: Infix declarations for record fields with DuplicateRecordFields are broken -------------------------------------+------------------------------------- Reporter: kanetw | Owner: adamgundry Type: bug | Status: closed Priority: high | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: fixed | Keywords: ORF Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: #11167 | Differential Rev(s): Phab:D1600 Wiki Page: | -------------------------------------+------------------------------------- Changes (by adamgundry): * keywords: => ORF -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11173#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC