- What “overloaded” means
- How it works
- Alternatives to
- Unusual instances
- Hazard: Type ambiguity
- 13 minutes
OverloadedStrings extension makes string literal syntax more general, allowing string literals to denote values of types other than
String. This extension is often used with the text package.
There are some of the pitfalls of string overloading which we discuss below: it is troublesome for some types, and it has the potential to introduce type ambiguity. In some cases you may want to consider using
QuasiQuotes, a more powerful but more cumbersome tool, instead.