Safe Haskell | None |
---|---|
Language | Haskell2010 |
A cache mapping data requests to their results.
- data DataCache res
- empty :: DataCache res
- insert :: (Hashable (req a), Typeable (req a), Eq (req a), Show (req a), Show a) => req a -> res a -> DataCache res -> DataCache res
- lookup :: Typeable (req a) => req a -> DataCache res -> Maybe (res a)
- showCache :: DataCache ResultVar -> IO [(TypeRep, [(String, Either SomeException String)])]