Data.SmallString
Description
The SmallString type is for storing small identifiers. We do not provide fast operations on strings - what we offer is low memory overhead.
The Ord instance is not guaranteed to be the same as that of the corresponding string.
- data SmallString
- fromString :: String -> SmallString
- toString :: SmallString -> String
Documentation
data SmallString Source
A space efficient representation of text. This is like a strict ByteString, but with fewer features, and UTF preserving. Fow ASCII data, we're slightly smaller than ByteStrings for small strings.
Instances
fromString :: String -> SmallStringSource
Convert a String into a SmallString.
toString :: SmallString -> StringSource
Convert a SmallString into a String.