bennofs/dynamic-cabal — pull request #2 by JPMoresmau (2013-12-28 17:15:50+00:00)
Title: Extra information to use with BuildWrapper

Hello, your project is really interesting to me, as I'm the maintainer of BuildWrapper and EclipseFP, and I'm always running into dependency hell with versions of cabal and GHC (well, mainly my users). So this is a god send, thanks a million! I've rewritten BuildWrapper to use dynamic-cabal instead of the cabal API directly, and in the process I needed to add more stuff, so here it is.
I think the most controversial is the fact that TargetName now contains some specific info that is not the name, but that is target type specific. I need that info in BuildWrapper, and this was the easiest.
There is also rawQuery that allows me to generate a longish code fragment and run through your code without having to generate it via your Exp combinators. You can look at the Cabal.hs module in BuildWrapper to see how I use it. There is also a test case in the test suite for it.
Hope this helps!!