intern-0.5.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 !(HashMap (Description t) (Weak t)) 

type Id = IntSource