[Haskell-cafe] Cabal rebuilding all of the C++ code for wxHaskell
Antoine Latter
aslatter at gmail.com
Fri Sep 30 02:42:00 CEST 2011
On Thu, Sep 29, 2011 at 7:15 PM, DukeDave <dukedave at gmail.com> wrote:
> Hi all, I've been trying to resolve a compile time issue[1] with
> wxHaskell, and I thought I'd throw it open to see if anyone on cafe
> can help.
> Here's the crux of the issue:
>
> The Setup.hs for wxcore (the major component of wxHaskell) uses
> "simpleUserHooks", overriding only "confHook".
> However there is also "cleanHook", which is defined by simpleUserHooks to
> be:
> cleanHook = \p _ _ f -> clean p f,
>
> If you consult the source for clean[2] you'll see that it tries to
> "remove the whole dist/ directory rather than tracking exactly what
> files we created in there". I presume that's why we have to do a full
> re-build every time?
>
> To try and circumvent this I modified the definition of "main" in
> Setup.hs to this:
Why do you want to change the behavior of the 'clean' hook? Most users
would expect it to clear out everything that 'configure', 'build' and
such have done.
I would be cautious about subverting user expectations like that.
Antoine
More information about the Haskell-Cafe
mailing list