#1463: Module → Package lookup in ghc-pkg?
----------------------------------+-----------------------------------------
    Reporter:  [EMAIL PROTECTED]  |        Owner:         
        Type:  feature request    |       Status:  new    
    Priority:  normal             |    Milestone:  6.10   
   Component:  Compiler           |      Version:  6.6.1  
    Severity:  normal             |   Resolution:         
    Keywords:                     |   Difficulty:  Unknown
          Os:  Unknown            |     Testcase:         
Architecture:  Unknown            |  
----------------------------------+-----------------------------------------
Comment (by simonmar):

 hmm. i was looking for a portable, cabal-based way to get the info. i
 wouldn't mind if
   cabal offered me a way to get that without telling me what the actual
 representation
   is, but !InstalledPackageInfo seems to be the only concrete format
 defined so far,
   so converting whatever the actual format is into that would seem to make
 sense.

 Cabal doesn't currently have what you're asking for, but there's no reason
 it couldn't be added.  It could be implemented exactly as I described:
 invoke `ghc-pkg describe` and parse the output.  You would have to tell
 Cabal what command to use for `ghc-pkg`, or re-use some of Cabal's
 configuration machinery.  In theory this method is portable; in practice
 only GHC has an `hc-pkg` command at the moment.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1463>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to