| Safe Haskell | Safe-Infered |
|---|
Data.SmallString
Description
An immutable Unicode text type, optimized for low memory overhead. A
SmallString typically uses less memory than the corresponding Text. Use
SmallString when storing a large number of short texts, for example when
indexing a map using words or short phrases.
To manipulate a SmallString, first convert it into a Text. For more
information on working with Text, see the text package:
http:hackage.haskell.orgpackagetext
The Ord instance is not guaranteed to be the same as that of the corresponding string.
- data SmallString
- fromString :: String -> SmallString
- toString :: SmallString -> String
- fromText :: Text -> SmallString
- toText :: SmallString -> Text
Documentation
data SmallString Source
A space efficient representation of Unicode text.
fromString :: String -> SmallStringSource
Convert a String into a SmallString.
toString :: SmallString -> StringSource
Convert a SmallString into a String.
fromText :: Text -> SmallStringSource
Convert a Text into a SmallString.
toText :: SmallString -> TextSource
Convert a SmallString into a Text.