[Haskell-cafe] Get "cabal repl" to dump ghc options?
Daniel Trstenjak
daniel.trstenjak at gmail.com
Wed May 14 08:29:39 UTC 2014
Hi Carlo,
On Wed, May 14, 2014 at 05:34:44AM +0000, Carlo Hamalainen wrote:
> The cabal repl command works out a bunch of GHC options. Is there any
> way to dump these options without actually starting the repl?
>
> In particular, things like this:
>
> ghcOptPackageDBs = [ GlobalPackageDB
> , SpecificPackageDB
> \"/home/carlo/foo/.cabal-sandbox/x86_64-linux-ghc-7.6.3-packages.conf.d\",SpecificPackageDB
> \"dist/package.conf.inplace\"
> ]
cabal-cargs[1] might be of help:
$> cabal-cargs --format=pure --only=package_db
/home/dan/projekte/layers/.cabal-sandbox/x86_64-linux-ghc-7.6.3-packages.conf.d
Greetings,
Daniel
[1] https://github.com/dan-t/cabal-cargs
More information about the Haskell-Cafe
mailing list