GHC 6.2 breaks multiline string literals
simonmar at microsoft.com
Mon Jan 5 13:48:34 EST 2004
> This worked in GHC 6.0.1:
> multilineLiteral = "
> 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.
More information about the Glasgow-haskell-users