[GHC] #11970: Simplify Parent for patten synonyms

GHC ghc-devs at haskell.org
Fri Apr 22 16:39:17 UTC 2016


#11970: Simplify Parent for patten synonyms
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:  mpickering
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Replying to [comment:3 mpickering]:
 > I have looked a bit at this. The problem from last time is that when
 renaming exports we need to reject data constructors if they are exported
 with a type constructor which is not their parent.

 As I mention above, I think this would best be done in `tcExports`, which
 is where you reject pattern synonyms that are exported with a type
 constructor that is not their parent.

 Would that solve it?  I think it might make the `rnExport` code quite a
 bit simpler.

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


More information about the ghc-tickets mailing list