
30 Apr
2011
30 Apr
'11
2:33 p.m.
Rogan Creswick schrieb:
On Tue, Apr 26, 2011 at 2:10 AM, Gracjan Polak
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/Distribu... Or what do you mean?