[Hackage] #311: support ghc-pkg dump

Hackage trac at galois.com
Thu Aug 7 15:49:18 EDT 2008

#311: support ghc-pkg dump
  Reporter:  duncan         |        Owner:                 
      Type:  enhancement    |       Status:  new            
  Priority:  normal         |    Milestone:  Cabal-1.6      
 Component:  Cabal library  |      Version:        
  Severity:  normal         |   Resolution:                 
  Keywords:                 |   Difficulty:  easy (<4 hours)
Ghcversion:  6.8.2          |     Platform:                 
Changes (by duncan):

  * priority:  high => normal
  * difficulty:  normal => easy (<4 hours)


 Thu Aug  7 20:03:07 BST 2008  David Waern
   * Use 'ghc-pkg dump' instead of 'ghc-pkg describe *'

   Does not implement lazy parsing of the output of ghc-pkg dump, so this
   is only a partial fix of #311.

   For more information about why we want to use ghc-pkg dump, see GHC
   ticket #2201.

 So yes, the lazy parsing would be nice. It's not that hard. Just split the
 input on `---` lines and then extract the name and version from each
 entry, but otherwise parse lazily using a let.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/311#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list