[Hackage] #621: Generated CPP macros need parens

Hackage trac at galois.com
Tue Dec 29 01:21:07 EST 2009


#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


More information about the cabal-devel mailing list