Haskell Hierarchical Libraries (collections package)ContentsIndex
Data.Trie.String.Types
Portabilityportable
Stabilityprovisional
Maintainerhttp://homepages.nildram.co.uk/~ahey/em.png
Description
Type definitions for StringMap.
Synopsis
data StringMap a = SM (Maybe a) !Char !UString !(AVL (StringMap a))
empty :: StringMap a
singleton :: String -> a -> StringMap a
singletonNE :: Char -> String -> a -> StringMap a
isEmpty :: StringMap a -> Bool
isNonEmpty :: StringMap a -> Bool
Documentation
data StringMap a
StringMap type.
Constructors
SM (Maybe a) !Char !UString !(AVL (StringMap a))
show/hide Instances
Functor StringMap
Typeable1 StringMap
??? a => Eq (StringMap a)
??? a => Ord (StringMap a)
??? a => Read (StringMap a)
??? a => Show (StringMap a)
empty :: StringMap a
The empty StringMap.
singleton :: String -> a -> StringMap a
Create a singleton from a (possibly empty) String.
singletonNE :: Char -> String -> a -> StringMap a

Create a singleton from a non-empty String.

DO NOT USE THIS - IT WON'T WORK. It's for internal use only and is not exported by the main Data.StringMap module. Use singleton instead.

isEmpty :: StringMap a -> Bool
Returns True if a StringMap is empty.
isNonEmpty :: StringMap a -> Bool
Returns True if a StringMap is non-empty.
Produced by Haddock version 0.7