[Haskell-cafe] cabal, Setup.lhs example

Stephen Tetley stephen.tetley at gmail.com
Mon Jul 19 12:54:26 EDT 2010


Hi Tom

This will the job for a UserHooks - probably preBuild? - see
Distribution.Simple.UserHooks.

postConf - Hook to run after configure command
preBuild - Hook to run before build command. Second arg indicates
verbosity level.
buildHook - Over-ride this hook to get different behaviour during build.

lhs2Tex uses user hooks extensively.

If that's too complicated, my own library Wumpus-Core uses a preSDist
hook in Setup.hs to make sure I've bumped the version number before I
ship the library.

Best wishes

Stephen


More information about the Haskell-Cafe mailing list