The type of the literal
Without any extensions, the type of a string literal – i.e., something between double quotes – is just a string, aka list of characters:
Prelude> :t "foo"
"foo" :: [Char]
However, when the OverloadedStrings extension is enabled, string literals be...