Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. unConstModule :: ConstModule r a -> r

    boltzmann-samplers Boltzmann.Species

    No documentation available.

  2. copyCacheSTM :: Cache k v -> STM (Cache k v)

    cache Data.Cache

    No documentation available.

  3. deleteSTM :: (Eq k, Hashable k) => k -> Cache k v -> STM ()

    cache Data.Cache

    STM variant of delete.

  4. insertSTM :: (Eq k, Hashable k) => k -> v -> Cache k v -> Maybe TimeSpec -> STM ()

    cache Data.Cache

    Insert an item in the cache, with an explicit expiration value, in the STM monad. If the expiration value is Nothing, the item will never expire. The default expiration value of the cache is ignored. The expiration value is the absolute Monotonic time the item expires. You should manually construct the absolute Monotonic time, as opposed to the behaviour of insert'. E.g.

    action :: Cache -> IO ()
    action c = do
    t <- getTime Monotonic
    let t' = t + (defaultExpiration c)
    atomically $ insertSTM 0 0 c (Just t')
    

  5. keysSTM :: Cache k v -> STM [k]

    cache Data.Cache

    STM variant of keys.

  6. lookupSTM :: (Eq k, Hashable k) => Bool -> k -> Cache k v -> TimeSpec -> STM (Maybe v)

    cache Data.Cache

    Lookup an item with a given key in the STM monad, given the current Monotonic time. STM variant of lookup and lookup'

  7. newCacheSTM :: Maybe TimeSpec -> STM (Cache k v)

    cache Data.Cache

    STM variant of newCache

  8. purgeExpiredSTM :: (Eq k, Hashable k) => Cache k v -> TimeSpec -> STM ()

    cache Data.Cache

    STM variant of purgeExpired. The TimeSpec argument should be the current Monotonic time, i.e. getTime Monotonic.

  9. sizeSTM :: Cache k v -> STM Int

    cache Data.Cache

    STM variant of size

  10. nowSTM :: STM TimeSpec

    cache Data.Cache.Internal

    Get the current time in the STM monad using unsafeIOToSTM.

Page 98 of many | Previous | Next