Haskell Hierarchical Libraries (collections package)ContentsIndex
Data.Trie.String.Internals.UString
Portabilityportable
Stabilityprovisional
Maintainerhttp://homepages.nildram.co.uk/~ahey/em.png
Contents
Converting Strings to UStrings (always strict).
Converting UStrings to Strings.
Lazily.
Length counting.
Description
Unboxed strings.
Synopsis
data UString
= UC !Char !UString
| UN
uString :: String -> UString
uStringRev :: String -> UString
uStringRevTo :: String -> UString -> UString
string :: UString -> String
stringRev :: UString -> String
stringRevTo :: UString -> String -> String
addULen :: UString -> Int# -> Int#
Documentation
data UString
A String of unboxed (with ghc at least) Chars.
Constructors
UC !Char !UString
UN
show/hide Instances
Converting Strings to UStrings (always strict).
uString :: String -> UString
Convert a String to a UString.
uStringRev :: String -> UString
Convert a Reversed String to a UString.
uStringRevTo :: String -> UString -> UString
Prepend a Reversed String to a UString.
Converting UStrings to Strings.
Lazily.
string :: UString -> String
Lazily Convert a UString to a String.
stringRev :: UString -> String
Convert a UString to a Reversed String.
stringRevTo :: UString -> String -> String
Prepend a UString to a Reversed String.
Length counting.
addULen :: UString -> Int# -> Int#
Add the length of a UString.
Produced by Haddock version 0.7