[Hackage] #311: support ghc-pkg dump

#311: support ghc-pkg dump ----------------------------+----------------------------------------------- Reporter: duncan | Owner: Type: enhancement | Status: new Priority: high | Milestone: Cabal-1.6 Component: Cabal library | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: | ----------------------------+----------------------------------------------- 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. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/311 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#311: support ghc-pkg dump ----------------------------+----------------------------------------------- Reporter: duncan | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Cabal-1.6 Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * priority: high => normal * difficulty: normal => easy (<4 hours) Comment: {{{ 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

#311: support ghc-pkg dump ----------------------------+----------------------------------------------- Reporter: duncan | Owner: Type: enhancement | Status: closed Priority: normal | Milestone: Cabal-1.6 Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: fixed Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => fixed Comment: See #288 for the remaining performance issue. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/311#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage