[Haskell-cafe] How to keep cabal and ghci package versions in sync?
Henning Thielemann
schlepptop at henning-thielemann.de
Sat Apr 30 20:33:36 CEST 2011
Rogan Creswick schrieb:
> On Tue, Apr 26, 2011 at 2:10 AM, Gracjan Polak <gracjanpolak at gmail.com> wrote:
>> I kind of expected 'cabal-dev ghci' to do this for me.
>
> At the moment, cabal-dev ghci just uses the -package-conf and
> -no-user-package-conf flags to restrict ghci to the sandboxed and
> global package dbs.
>
> It's difficult to do more without parsing the content of the project's
> cabal file, and that parser isn't exposed through a library api (it's
> in cabal-install), which makes it a little difficult to use.
Cabal exposes functions for reading and writing package description files:
http://hackage.haskell.org/packages/archive/Cabal/1.10.1.0/doc/html/Distribution-PackageDescription-Parse.html
Or what do you mean?
More information about the Haskell-Cafe
mailing list