[Haskell-cafe] GHC API arguments via cabal/stack?

Daniel Trstenjak daniel.trstenjak at gmail.com
Fri Mar 11 10:16:43 UTC 2016


Hi David,

> I've also briefly contemplated using the Cabal library to read my .cabal file
> and work out what to do, but I'm unsure that this would work nicely under
> stack. At least, I'm not sure quite what to do with all the package databases
> and other stuff that stack does for you.

There's cabal-cargs[1] to extract the relevant info for ghc from a cabal file.
I don't know how much work it would be to make it stack aware/compatible.

Greetings,
Daniel

[1] https://github.com/dan-t/cabal-cargs


More information about the Haskell-Cafe mailing list