文字文字
該 OverloadedStrings
語言擴充套件允許使用普通的字串字面量,靜置 Text
值。
{-# LANGUAGE OverloadedStrings #-}
import qualified Data.Text as T
myText::T.Text
myText = "overloaded"
該 OverloadedStrings
語言擴充套件允許使用普通的字串字面量,靜置 Text
值。
{-# LANGUAGE OverloadedStrings #-}
import qualified Data.Text as T
myText::T.Text
myText = "overloaded"