[Gtk2hs-devel] move Gtk2HsSetup.hs to gtk2hs-buildtools

Antoine Latter 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
> package.

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.

> http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#cpp
> 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?
> Claus
>> 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
>> welcome.
>> Regards,
>> Axel
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries

More information about the Libraries mailing list