Let\'s say I have this string literal with line breaks:
file :: String
file = \"the first line\\nthe second line\\nthe third line\"
Is there an
I don't believe that Haskell has an easy way to do this without resorting to quasiquoting or something else. However you can mostly get what you want by using the unlines function like below. However this will result in a newline after your last line, which you may or may not care about.
file :: String
file = unlines [
"the first line",
"the second line",
"the third line"
]