How can I write multiline strings in Haskell?

You can write multiline strings like so

x = "This is some text which we escape \
      \   and unescape to keep writing"

Which prints as

"This is some text which we escape   and unescape to keep writing"

If you want this to print as two lines

x = "This is some text which we escape \n\
      \   and unescape to keep writing"

Which prints as

This is some text which we escape
    and unescape to keep writing

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)