[GHC] #8776: Displaying pattern synonym for a GADT

GHC ghc-devs at haskell.org
Wed Mar 12 13:47:36 UTC 2014


#8776: Displaying pattern synonym for a GADT
-------------------------------------+------------------------------------
        Reporter:  monoidal          |            Owner:  cactus
            Type:  bug               |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.7
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by simonpj):

 Gergo,

 Yes that looks right to me, thank you.  Do remove the remnants and merge.

 Maybe add the comments above as a Note to explain the strategy.

 For `RealDataCon`, you can generate an `IfaceId` decl, because that will
 print just the way that `pprDataConSig` worked.

 If you felt brave you could try converting some of the other cases.
 `AnId` is simple, and `ACoAxiom` is probably simple too.

 Simon

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


More information about the ghc-tickets mailing list