Opened 9 years ago

Closed 9 years ago

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

Description

When compiling code like:

infixl 9 \\
(\\) = undefined

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


Change History (1)

comment:1 Changed 9 years ago by simonmar

  • Status changed from assigned to closed
Logged In: YES 
user_id=48280

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.