Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data CachedData a
- fetch :: CachedData a -> IO a
- createCache :: Int -> IO a -> IO (CachedData a)
Documentation
data CachedData a Source #
:: Int |
|
-> IO a |
|
-> IO (CachedData a) |
Create a cache with a timeout from an (IO ()) function.