[ ghc-Bugs-1303232 ] parse error on input `\' when using -cpp
SourceForge.net
noreply at sourceforge.net
Fri Oct 7 04:48:25 EDT 2005
Bugs item #1303232, was opened at 2005-09-24 14:25
Message generated for change (Comment added) made by simonmar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1303232&group_id=8032
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Peter (peter26)
Assigned to: Nobody/Anonymous (nobody)
Summary: parse error on input `\' when using -cpp
Initial Comment:
When compiling code like:
infixl 9 \
(\) = undefined
causes a parser error, when compiling with the -cpp option
----------------------------------------------------------------------
>Comment By: Simon Marlow (simonmar)
Date: 2005-10-07 08:48
Message:
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).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1303232&group_id=8032
More information about the Glasgow-haskell-bugs
mailing list