(Imported from Trac #133, reported by guest on 2007-05-26)
Currently cleanHook, postClean, sDistHook, postSDist get a Maybe LocalBuildInfo? argument. They shouldn't do something different depending on, e.g., what compiler they have been configured with, so they should not be passed this.
If they /need/ something from LocalBuildInfo? (e.g. happy in order to generate files to put in the source tarball?) then they should /always/ be passed something (either LocalBuildInfo? or a smaller datatype).
(Imported comment by @dcoutts on 2007-05-26)
See also bug #134
(Imported comment by @dcoutts on 2007-09-17)
sdist needs to find pre-processors. That requires the ProgramConfiguration which we get during the configure step. We could use the defaultProgramConfiguration but then we will fail if we need any non-standard programs.
clean does not need the LocalBuildInfo at all. The current code uses it but it's not justified.
(Imported comment by @dcoutts on 2008-01-21)
Thu Jun 4 21:38:30 BST 2009 Duncan Coutts <firstname.lastname@example.org>
* Do not pass Maybe LocalBuildInfo to clean hook
It is a bad idea for clean to do anything different depending
on whether the package was configured already or not. The
actual cleaning code did not use the LocalBuildInfo so this
only changes in the UserHooks interface. No Setup.hs scripts
actually make of this parameter for the clean hook.
Part of ticket #133.
Closing as there's been no activity in years.
We're cleaning up the bug tracker to make it useful again and are thus closing bugs that haven't seen any activity in a long time. Please re-open (or file a new bug) if the problem reappears.