GHC 6.2 breaks multiline string literals

Stefan Reich doc at drjava.de
Fri Dec 26 16:48:12 EST 2003


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?

Thanks in advance,
-Stefan



More information about the Glasgow-haskell-users mailing list