RE: GHC 6.2 breaks multiline string literals
5 Jan
2004
5 Jan
'04
7:18 p.m.
This worked in GHC 6.0.1:
multilineLiteral = " line1 line2"
But doesn't work in GHC 6.2. Is this a bug or rather a bugfix?
Anyway, I found it very convenient to embed verbatim string blocks this way. Is there maybe another way to achieve the same thing?
Just to clarify, this is actually illegal syntax according to Haskell 98, so it is now disallowed. Use string gaps and explicit \n characters in string literals. Cheers, Simon
8041
Age (days ago)
8041
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow