[GHC] #860: CPP fails when a macro is used on a line containing a single quote character

GHC trac at galois.com
Thu Aug 10 06:18:03 EDT 2006


#860: CPP fails when a macro is used on a line containing a single quote
character
--------------------------------+-------------------------------------------
    Reporter:  ketil at ii.uib.no  |        Owner:                 
        Type:  feature request  |       Status:  new            
    Priority:  lowest           |    Milestone:                 
   Component:  Compiler         |      Version:  6.4.2          
    Severity:  minor            |     Keywords:  cpp quote prime
          Os:  Unknown          |   Difficulty:  Unknown        
Architecture:  Unknown          |  
--------------------------------+-------------------------------------------
CPP is nice when you need a quick-and-dirty solution, but one little
 stumbling block is
 that macros are not expanded when the line contains a single quote
 character (as in function names ending in "prime" - let x' = MACRO x
 in...).

 One solution is of course to break the line between the macro and the
 quote, but it'd be nice to have a CPP that was just a ''bit'' more clever.

 -k

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/860>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list