[Gtk2hs-devel] move Gtk2HsSetup.hs to gtk2hs-buildtools
aslatter at gmail.com
Thu Nov 25 11:59:56 EST 2010
On Thu, Nov 25, 2010 at 9:56 AM, Claus Reinke <claus.reinke at talk21.com> wrote:
>> b) putting Gtk2HsSetup.hs in either gtk2hs-buildtools or any other library
>> means that ./Setup.hs has to run to realize that this library is missing
>> and that it needs to be downloaded. However, ./Setup.hs cannot be run
>> because it imports Gtk2HsSetup.hs which is not yet available.
> There is MIN_VERSION_<package>(), so you might be able to check
> whether it is defined/has the right version, if it comes with the tools
Does that work in Setup.hs? I thought that these CPP macros were
generated by the 'confgure' step, which may not have been run yet.
> But, if the setup library is part of the tools package, and the latter
> becomes a dependency, wouldn't cabal install take care of that bit?
>> I don't know if (b) can be solved by e.g. conditionally importing
>> Gtk2HsSetup.hs if it is there and only installing libraries and re- invoking
>> Setup.hs one this is done. This is a common trick in Makefiles, e.g. one
>> could call make recursively to first build dependencies. Any suggestions
> Libraries mailing list
> Libraries at haskell.org
More information about the Libraries