Opened 12 years ago

Closed 12 years ago

Last modified 48 years ago

#463 closed bug (Wont Fix)

parse error on input `\' when using -cpp

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


When compiling code like:

infixl 9 \\
(\\) = undefined

causes a parser error, when compiling with the -cpp option

Change History (1)

comment:1 Changed 12 years ago by simonmar

Status: assignedclosed
Logged In: YES 

This is a limitation in CPP, which interprets a backslash at
the end of a line as a line continuation.  You can work
around it in two ways: add a comment at the end of the line
to fool CPP, or use cpphs instead (recent cpphs's work
nicely with GHC, I believe).

Note: See TracTickets for help on using tickets.