don't think commit messages are making it through
Isaac Jones
ijones at syntaxpolice.org
Thu Sep 8 02:20:39 EDT 2005
I don't think my commit messages are making it through (my last few
haven't), and since this is a somewhat big one, I thought I should
fire it off to the list by hand.
peace,
isaac
% cvs diff|diffstat
Distribution/Simple.hs | 137 +++++++++++++++++++++++++++++++++++++++-------
tests/ModuleTest.hs | 4 +
tests/withHooks/Setup.lhs | 21 ++++++-
3 files changed, 139 insertions(+), 23 deletions(-)
First stab at command-hooks
That is, hooks to override basic behavior of configure, install, etc.
Basic use case for this is in over-riding the "install" behavior for
cgi-bin tools.
In addition to the existing hooks, that gives us:
confHook :: PackageDescription -> ConfigFlags -> IO LocalBuildInfo,
buildHook :: PackageDescription
-> LocalBuildInfo
-> Int -- verbose
-> [ PPSuffixHandler ]
-> IO (),
cleanHook :: PackageDescription -> LocalBuildInfo -> Int -> [PPSuffixHandler] -> IO (),
copyHook :: PackageDescription
-> LocalBuildInfo
-> (Maybe FilePath,Int) -- ^install-prefix, verbose
-> IO (),
instHook :: PackageDescription
-> LocalBuildInfo
-> Int -- verbose
-> Bool -- user install?
-> IO (),
sDistHook :: FilePath -- ^build prefix (temp dir)
-> FilePath -- ^TargetPrefix
-> Int -- ^verbose
-> Bool -- ^snapshot
-> [PPSuffixHandler] -- ^ extra preprocessors (includes suffixes)
-> PackageDescription
-> IO (),
regHook :: PackageDescription -> LocalBuildInfo -> RegisterFlags -> IO (),
unregHook :: PackageDescription -> LocalBuildInfo -> RegisterFlags -> IO (),
haddockHook :: PackageDescription -> LocalBuildInfo -> Int -> [PPSuffixHandler] -> IO (),
pfeHook :: PackageDescription -> LocalBuildInfo -> Int -> [PPSuffixHandler] -> IO ()
I don't really know if these types are good, but they are the types
needed by the "default" hooks which do the guts of the
Distribution.Simple work. I'm not happy with the handling of
LocalBuildInfo which you can't avoid generating at this point, because
all the post-hooks need it.
More information about the Cvs-libraries
mailing list