OverloadedStrings
The most important extension
With this extension classic string literals (of type [Char]
) gets wrapped in the fromString
from the IsString
class in Data.String
:
So, for example, this,
would get turned into this:
Got a type that wants to join the party and be representable by strings? Then make it an instance IsString
.
Should probably be always on in Haskell 2020.
Got an issue with any of this? Please share or drop me a line (see below).