[GHC] #15149: Identical distinct type family fields miscompiled

GHC ghc-devs at haskell.org
Fri May 25 16:25:40 UTC 2018


#15149: Identical distinct type family fields miscompiled
-------------------------------------+-------------------------------------
        Reporter:  NeilMitchell      |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.2
      Resolution:                    |             Keywords:  ORF
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:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 PS, Neil you say

 >  I haven't been able to find any workarounds (without just avoiding
 clashing record fields).

 Can't you just not use `DisambiguateRecordFields` and instead say this?

 {{{
 main = print (AnDouble{AnDouble.an=1}, AnInt{AnInt.an=1})
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15149#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list