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
Many times this facality is referred to as heredocs. Haskell does not have heredocs.
However, there are several packages that use GHC's QuasiQuotes extensions to achieve this.
Here is one I use: http://hackage.haskell.org/package/interpolatedstring-perl6-0.9.0/docs/Text-InterpolatedString-Perl6.html
Your example would look like:
file = [q|
the first line
the second line
the third line
|]