@@ -14,13 +14,13 @@ module Graphics.Vty.Image ( DisplayText
1414 , vert_cat
1515 , background_fill
1616 , text
17− , strict_text
17+ , text'
1818 , char
1919 , string
2020 , iso_10646_string
2121 , utf8_string
2222 , utf8_bytestring
23− , utf8_strict_bytestring
23+ , utf8_bytestring'
2424 , char_fill
2525 , empty_image
2626 , safe_wcwidth
@@ -162,8 +162,8 @@ text a txt
162162 in HorizText a txt display_width (fromIntegral $! TL.length txt)
163163
164164-- | A Data.Text value
165−strict_text :: Attr -> T.Text -> Image
166−strict_text a txt
165+text' :: Attr -> T.Text -> Image
166+text' a txt
167167 | T.length txt == 0 = EmptyImage
168168 | otherwise = let display_width = safe_wcswidth (T.unpack txt)
169169 in HorizText a (TL.fromStrict txt) display_width (T.length txt)
@@ -208,8 +208,8 @@ utf8_bytestring :: Attr -> BL.ByteString -> Image
208208utf8_bytestring a bs = text a (TL.decodeUtf8 bs)
209209
210210-- | Renders a UTF-8 encoded strict bytestring.
211−utf8_strict_bytestring :: Attr -> B.ByteString -> Image
212−utf8_strict_bytestring a bs = strict_text a (T.decodeUtf8 bs)
211+utf8_bytestring' :: Attr -> B.ByteString -> Image
212+utf8_bytestring' a bs = text' a (T.decodeUtf8 bs)
213213
214214-- | creates a fill of the specified character. The dimensions are in number of characters wide and
215215-- number of rows high.