该OverloadedStrings语言扩展允许使用普通的字符串字面量,静置Text值。
{-# LANGUAGE OverloadedStrings #-} import qualifiedData.Textas T myText :: T.Text myText = "overloaded"