reactivity-0.3.2.4: An alternate implementation of push-pull FRP.

Safe HaskellTrustworthy
LanguageHaskell98

Data.WeakDict

Synopsis

Documentation

data Dyn Source #

Dynamic values equipped with the ability to compare to other values.

Instances

Eq Dyn Source # 

Methods

(==) :: Dyn -> Dyn -> Bool #

(/=) :: Dyn -> Dyn -> Bool #

makeDyn :: (Typeable * a, Eq a) => a -> Dyn Source #

data WeakDict t u Source #

emptyWeak :: IO (WeakDict t u) Source #

An empty WeakDict.

sizeWeak :: WeakDict t u -> IO Int Source #

Size of a WeakDict.

assocsWeak :: WeakDict t u -> IO [(t, u)] Source #

filterWeak :: Eq t => (t -> u -> Bool) -> WeakDict t u -> IO (WeakDict t u) Source #

Filtering contents by a predicate.

insertWeak :: Eq t => t -> u -> WeakDict t u -> IO (WeakDict t u) Source #

Insert a key-value pair into the dictionary, in such a way as that the pair does not keep the key (or value) alive.

fastDeleteWeak :: Eq a => a -> WeakDict a u -> IO () Source #

Deletes a key-value pair, updating the original structure.

deleteWeak :: Eq t => t -> WeakDict t u -> IO (WeakDict t u) Source #

Deletes a key-value pair, so that the original structure is not affected.

lookupWeak :: Eq a => a -> WeakDict a a1 -> IO (Maybe a1) Source #

Look up a value based on a key.