
#621: Generated CPP macros need parens ----------------------------------+----------------------------------------- Reporter: AntoineLatter | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: very easy (<1 hour) | Ghcversion: Platform: | ----------------------------------+----------------------------------------- CPP directives such as: {{{ #if !MIN_VERSION_foo(1,2,3) }}} don't work, as the expanded version of MIN_VERSION_foo(x,y,z) does not include enclosing parenthesis. I can always do: {{{ #if !(MIN_VERSION_foo(1,2,3)) }}} but that's irritating. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/621 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects