Ticket #733 (closed bug: duplicate)

Opened 7 years ago

Last modified 4 months ago

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 Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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

Change History

Changed 7 years ago by simonmar

  • priority changed from normal to low
  • severity changed from normal to minor

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.

Changed 7 years ago by igloo

  • milestone set to _|_

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple

Changed 4 months ago by morabbin

  • status changed from new to closed
  • failure set to None/Unknown
  • resolution set to duplicate

Closing; superseded by #4836.

Note: See TracTickets for help on using tickets.