In Haskell, in order to represent the literal string "\"
, one would normally write:
"\\"
However, is there a way to escape the string such that a single backslash can be written by itself without needing to be escaped? For example, I can do exactly this in C# by pre-pending @
to the string:
@"\"
Does Haskell have an equivalent?