Ticket #311 (closed enhancement: fixed)

Opened 5 months ago

Last modified 4 months ago

support ghc-pkg dump

Reported by: duncan Assigned to:
Priority: normal Milestone: Cabal-1.6
Component: Cabal library Version: 1.2.3.0
Severity: normal Keywords:
Cc: Difficulty: easy (<4 hours)
GHC Version: 6.8.2 Platform:

Description

http://hackage.haskell.org/trac/ghc/ticket/2201#comment:5

We need to do this to support ghc-6.10 properly.

At the same time we should try the lazy parsing approach where we split on the records and extract the name and version but parse the remainder lazily. This could significantly speed up the parsing.

Change History

08/07/08 12:49:18 changed by duncan

  • priority changed from high to normal.
  • difficulty changed from normal to 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.

08/12/08 11:34:12 changed by duncan

  • status changed from new to closed.
  • resolution set to fixed.

See #288 for the remaining performance issue.