[GHC] #10311: package name returned from tyConPackage is garbled

GHC ghc-devs at haskell.org
Thu Apr 16 07:29:00 UTC 2015


#10311: package name returned from tyConPackage is garbled
-------------------------------------+-------------------------------------
        Reporter:  j.waldmann        |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by ezyang):

 The reason for this is that the internal representation of TyCons has
 changed from packagename-version to package keys, which is the garbled
 output you're seeing. The GHC approved way of getting the original name is
 to consult the package database. A bit unfortunately, you're not using the
 GHC API, so I'm not actually sure there is a simple simple way to manage
 this in your case.

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


More information about the ghc-tickets mailing list