[GHC] #733: Problem compiling .lhs files with lines that begin with #

GHC trac at galois.com
Thu Mar 23 09:29:10 EST 2006


#733: Problem compiling .lhs files with lines that begin with #
-----------------------+----------------------------------------------------
  Reporter:  guest     |          Owner:         
      Type:  bug       |         Status:  new    
  Priority:  low       |      Milestone:         
 Component:  Compiler  |        Version:  6.4.1  
  Severity:  minor     |     Resolution:         
  Keywords:            |             Os:  Unknown
Difficulty:  Unknown   |   Architecture:  Unknown
-----------------------+----------------------------------------------------
Changes (by simonmar):

  * severity:  normal => minor
  * priority:  normal => low

Comment:

 This is true, the idea is to leave CPP directives intact.  When not using
 CPP it would make sense to ignore these '#' lines.  Unfortunately, at the
 time we are unlitting, we don't know whether we will be running CPP or not
 (the -cpp flag might be in the OPTIONS_GHC pragma, which can't be parsed
 until unlit is finished).  Perhaps we could do a two-pass unlit or
 something, but that sounds like too much effort.

 I doubt we'll fix this, but thanks for the report anyway.

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


More information about the Glasgow-haskell-bugs mailing list