[GHC] #11173: Infix declarations for record fields with DuplicateRecordFields are broken
GHC
ghc-devs at haskell.org
Mon Dec 7 16:51:40 UTC 2015
#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
More information about the ghc-tickets
mailing list