
#290: Cabal does some work behind the back of hooks ----------------------------+----------------------------------------------- Reporter: igloo | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Comment (by duncan): This is the bit: {{{ localbuildinfo0 <- confHook hooks epkg_descr flags let localbuildinfo = localbuildinfo0{ pkgDescrFile = mb_pd_file } writePersistBuildConfig distPref localbuildinfo let pkg_descr = localPkgDescr localbuildinfo postConf hooks args flags pkg_descr localbuildinfo }}} `writePersistBuildConfig` writes the configuration file which creates the dist dir. To be honest, I'm not so sure Setup.hs itself should be building in multiple ways and changing the dist dir. It'll make for a very weird package that's not installable in the standard way. Can't you do it externally? That is have the external script build the package multiple times with different dist dirs and config options? -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/290#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects