Opened 12 years ago

Closed 5 years ago

#733 closed bug (duplicate)

Problem compiling .lhs files with lines that begin with #

Reported by: guest Owned by:
Priority: low Milestone:
Component: Compiler Version: 6.4.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


Lines starting with # inside a .lhs make ghc yield "lexical error".

Change History (5)

comment:1 Changed 12 years ago by simonmar

Priority: normallow
severity: normalminor

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.

comment:2 Changed 11 years ago by igloo

Milestone: _|_

comment:3 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:4 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple

comment:5 Changed 5 years ago by morabbin

Resolution: duplicate
Status: newclosed
Type of failure: None/Unknown

Closing; superseded by #4836.

Note: See TracTickets for help on using tickets.