radix-tree-1.0.0.0: Radix trees.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.RadixTree.Word8.Key

Description

Safe functions for building and destroying radix tree keys.

Synopsis

Build

data Build Source #

Key as stored in the radix tree.

Instances

Instances details
Show Build Source # 
Instance details

Defined in Data.RadixNTree.Word8.Key

Methods

showsPrec :: Int -> Build -> ShowS #

show :: Build -> String #

showList :: [Build] -> ShowS #

Raw

buildBytes :: Build -> [Word8] Source #

Convert a key into a list of bytes.

ByteString

buildByteString :: Build -> ByteString Source #

Convert a key into a strict ByteString.

Text

Feed

data Feed Source #

Key as a sequence of individual bytes.

Instances

Instances details
Show Feed Source # 
Instance details

Defined in Data.RadixNTree.Word8.Key

Methods

showsPrec :: Int -> Feed -> ShowS #

show :: Feed -> String #

showList :: [Feed] -> ShowS #

Raw

feedBytes :: [Word8] -> Feed Source #

Convert a list of bytes into a key.

ByteString

feedByteString :: ByteString -> Feed Source #

Convert a strict ByteString into a key.

feedLazyByteString :: ByteString -> Feed Source #

Convert a lazy ByteString into a key.

Text

feedText :: Text -> Feed Source #

Convert a strict Text into a key.

feedLazyText :: Text -> Feed Source #

Convert a lazy Text into a key.