intern-0.2.0: Efficient hash-consing for arbitrary data types

Data.Interned.Internal

Documentation

newtype Cache t Source

Constructors

Cache 

Fields

getCache :: MVar (CacheState t)
 

data CacheState t Source

Constructors

CacheState !(Id t) !(HashMap (Description t) (Weak t)) 

newtype Id t Source

Constructors

Id Int 

Instances

Enum (Id t) 
Eq (Id t) 
Integral (Id t) 
Num (Id t) 
Ord (Id t) 
Real (Id t) 
Show (Id t) 
Hashable (Id t)