
#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