-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | A Unicode text type, optimized for low memory overhead
--
-- A Unicode text type, optimized for low memory overhead. No string
-- manipulation functions are offered.
--
-- Equality and ordinal comparison aim to be competitive with the Text
-- type.
@package smallstring
@version 0.3.1
-- | 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.
module Data.SmallString
-- | A space efficient representation of Unicode text.
data SmallString
-- | Convert a String into a SmallString.
fromString :: String -> SmallString
-- | Convert a SmallString into a String.
toString :: SmallString -> String
-- | Convert a Text into a SmallString.
fromText :: Text -> SmallString
-- | Convert a SmallString into a Text.
toText :: SmallString -> Text
instance Hashable SmallString
instance IsString SmallString
instance NFData SmallString
instance Show SmallString
instance Ord SmallString
instance Eq SmallString