Hi Stephen,

thanks for this information! So we'll just go for a different .cabal  
file in the demos/ subdirectory of each project. Then people can build  
the demos if they want to.

Cheers,
Axel
On May 8, 2010, at 13:45, Stephen Blackheath [to gtk2hs developers]  
wrote:

> Axel,
>
> You can (...build an executable in a cabal file that depends on the
> library that is being built in the cabal file...) on versions of Cabal
> where ticket #89 has been fixed.
>
> http://hackage.haskell.org/trac/hackage/ticket/89
>
> This is in Cabal 1.8 but the changes for cabal-install are not yet
> released on Hackage, I think.  Also there is an outstanding bug to do
> with running 'cabal haddock'.
>
> If you don't depend on the internal library explicitly, it will find  
> the
> sources (assuming the source root directory is the same) fine, but it
> will end up building everything many times over (once for the lib and
> once for each binary).  Not good for a large project.
>
>
> Steve
>
> On 08/05/10 22:41, Axel Simon wrote:
>> I think we should compile all demos by default but not install them.
>> You can specify that with cabal. However, I don't know if you can
>> build an executable in a cabal file that depends on the library that
>> is being built in the cabal file. If that doesn't work, we need to
>> come up with a new solution.
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Gtk2hs-devel mailing list
> Gtk2hs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel


------------------------------------------------------------------------------

_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to