Re: [Hackage] #32: add -DPACKAGE_FOO_VERSION=1.1 to cpp command line

#32: add -DPACKAGE_FOO_VERSION=1.1 to cpp command line ----------------------------+----------------------------------------------- Reporter: ijones | Owner: ijones Type: enhancement | Status: new Priority: normal | Milestone: Cabal-1.4 Component: Cabal library | Version: Severity: normal | Resolution: Keywords: | Difficulty: easy Ghcversion: 6.2.2 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * priority: high => normal * platform: => * ghcversion: => 6.2.2 Comment: Does we really want it? We've got this far without needing it. Perhaps people are using something worse, like __GLASGOW_HASKELL__ >= 608 as a proxy for what they really mean which is probably __PACKAGE_BASE_VERSION__ >= 3. Or perhaps they're being good and if we make it too easy and provide all these package versions then people will start doing more naughty cpp stuff. They can already make cpp flags for package versions using configurations: {{{ flag bytestringInBase library if flag(bytestringInBase) build-depends: base >= 2 && < 3 cpp-options: -DBYTESTRING_IN_BASE else build-depends: base < 2 || >= 3 }}} -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/32#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage