InternedData-0.0.0.1: Data interning (with compact regions where possible)

Safe HaskellNone
LanguageHaskell2010

Data.ByteString.Interned.Internal

Description

This module keeps a persistent bimap between ByteStrings and Ints.

Synopsis

Documentation

ibsBimapAdd :: ByteString -> Int Source #

Add UTF8 ByteString and return Int key. Will return key for existing string and thereby serves for lookup in left-to-right direction.

ibsBimapLookupInt :: Int -> ByteString Source #

Lookup based on an Int key. Unsafe totality assumption.