[ ghc-Bugs-475612 ] Can't split a string literal
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 30 Oct 2001 01:18:57 -0800
Bugs item #475612, was opened at 2001-10-27 11:14
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=475612&group_id=8032
Category: Compiler
Group: 5.02
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Simon Marlow (simonmar)
Summary: Can't split a string literal
Initial Comment:
If I try to split a string literal across two lines,
using the syntax of two \ seperated by white space, I
get the error mesage:
error in character literal
The code lines in question looks like:
hPutStr h $
"GET "++path uri++" HTTP/1.1\r\n \Host: "++authority uri++"\r\n \User-Agent: Haber/0.2\r\n\r\n"
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-10-29 10:19
Message:
Logged In: NO
The problem with -cpp described in section 4.12.3 is indee Simon> Bugs item #475612, was opened at 2001-10-27 11:14 You can
Simon> respond by visiting:
Simon> http://sourceforge.net/tracker/?func=detail&atid=108032&aid=475612&group_id=8032
>> Category: Compiler
Simon> Group: 5.02 Status: Open Resolution: None Priority: 5
Simon> Submitted By: Nobody/Anonymous (nobody)
d the problem.
Adding extra spaces did the trick.
----------------------------------------------------------------------
Comment By: Simon Marlow (simonmar)
Date: 2001-10-29 01:50
Message:
Logged In: YES
user_id=48280
There is a known problem with using string gaps in
conjunction with cpp - see section 4.12.13 in the user's
guide.
If that's not the problem, could you send or attach the
actual file which caused the error? Thanks.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=475612&group_id=8032