[GHC] #15478: ghc-pkg package config validation too strict

GHC ghc-devs at haskell.org
Fri Aug 10 14:02:21 UTC 2018


#15478: ghc-pkg package config validation too strict
-------------------------------------+-------------------------------------
        Reporter:  mboes             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Compiler          |              Version:  8.4.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 mboes):

 It turns out that because `base` is a "wired-in package", it's magical.
 GHC doesn't use versions to locate wired-in packages, because they are
 assumed unique. That's why the above example works. But in the general
 case, it won't.

 So I guess we should close this ticket - at any rate there's no issue with
 ghc-pkg, but perhaps we want to consider having GHC accepting just package
 names in the pkg db when they are unambiguous.

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


More information about the ghc-tickets mailing list