A format string. This is intentionally incompatible with other string
types, to make it difficult to construct a format string by
concatenating string fragments (a very common way to accidentally make
code vulnerable to malicious data).
This type is an instance of
IsString, so the easiest way to
construct a query is to enable the
OverloadedStrings language
extension and then simply write the query in double quotes.
{-# LANGUAGE OverloadedStrings #-}
import Fmt
f :: Format
f = "hello {}"
The underlying type is
Text, so literal Haskell strings that
contain Unicode characters will be correctly handled.