[GHC] #13352: Strange requirement for re-exported duplicate record fields
GHC
ghc-devs at haskell.org
Fri Jan 26 00:01:58 UTC 2018
#13352: Strange requirement for re-exported duplicate record fields
-------------------------------------+-------------------------------------
Reporter: crockeea | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.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 tejon):
I've just run into this as well, with the additional observation that if
module C ''re-exports'' modules A and B, then C must also have
`DuplicateRecordFields`. (Of course, C needing it is the immediate
intuition anyway; but it's not always true that it's only needed at (n-1
of) the definition points.
This is just a slightly annoying curiosity when one controls all the
relevant modules, but it seems like it shuts down the extension completely
if one is working with external modules that don't have
`DuplicateRecordFields` enabled (because why should they, internally there
are none).
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13352#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list