
#10311: package name returned from tyConPackage is garbled -------------------------------------+------------------------------------- Reporter: j.waldmann | Owner: ezyang 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 issue with Haddock is an interesting one which we have not really adequately discussed yet. I think in principle, Haddock documentation should be placed in a URL `packagename-0.1`, on the principle that the documentation for a package is somehow invariant of what versions you picked for its dependencies. If I want to know what the API of `containers-0.5.6.3` is, I don't care that it was compiled against `base-4.2` or `base-4.3`. But in practice, Haddock documentation (1) must be built with respect to a specific version resolution, and (2) contains links to other packages, the particular versions of which depend on the resolution from (1). So even if I in principle don't care what version of `base` I compiled against, if I click a hyperlink to `Int`, I'm going to have to end up with some version of `base` documentation! But I think this will not solve your problem, because even if Haddock URLs started recording package keys, they would want to record an expanded form, `foo-0.1-47ajk3tbda43DFWyeF3oHQ`. So you will still have to bang on the installed package database to get this from `47ajk3tbda43DFWyeF3oHQ`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10311#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler