Rogan Creswick schrieb: > On Tue, Apr 26, 2011 at 2:10 AM, Gracjan Polak <gracjanpo...@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? _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe