[Haskell-cafe] Translations and Haskell

Stefan O'Rear stefanor at cox.net
Mon Nov 19 20:44:18 EST 2007


On Mon, Nov 19, 2007 at 05:39:44PM -0800, Jeremy Shaw wrote:
> You might also allow:
> 
> i18n ("multine" ++
>       "string")
> 
> provided that all the arguments of ++ are string literals. This is
> because, AFAIK, there is no other way to split a long string across
> multiple source lines in a portable way.

"multiline\
\string"

http://haskell.org/onlinereport/lexemes.html#sect2.6

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20071119/ce94a3d7/attachment.bin


More information about the Haskell-Cafe mailing list