[Hackage] #778: ConfigFlags { configConfigurationsFlags } field should contain flags which are defined in .cabal file, but aren't specified in command line with -flags=...
Hackage
cvs-ghc at haskell.org
Fri Dec 17 23:47:06 CET 2010
#778: ConfigFlags { configConfigurationsFlags } field should contain flags which
are defined in .cabal file, but aren't specified in command line with
-flags=...
----------------------------+-----------------------------------------------
Reporter: nartamonov | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Cabal library | Version: HEAD
Severity: normal | Keywords:
Difficulty: unknown | Ghcversion: 6.12.3
Platform: |
----------------------------+-----------------------------------------------
Comment(by nartamonov):
Small snippet from Setup.hs which shows how I use ConfigFlags {
configConfigurationsFlags }:
{{{
customBuild :: PackageDescription -> LocalBuildInfo -> UserHooks ->
BuildFlags -> IO ()
customBuild descr buildInfo hooks flags = {- ... skipped ... -}
where debugFlag = lookup (FlagName "debug") $ configConfigurationsFlags
$ configFlags buildInfo
main = defaultMainWithHooks simpleUserHooks {
hookedPrograms = [qmake, make],
buildHook = customBuild }
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/778#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
More information about the cabal-devel
mailing list