Hoogle Search

Within LTS Haskell 24.65 (ghc-9.10.3)

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

  1. putVarMsg :: VarMsg -> Put

    NineP Data.NineP

    For every lower level VarMsg type, encodes a full wrapper around that type for use with 9P2000 streams

  2. data MutVar s a

    classy-prelude-yesod ClassyPrelude.Yesod

    A MutVar behaves like a single-element mutable array associated with a primitive state token.

  3. MutVar :: MutVar# s a -> MutVar s a

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  4. asMutVar :: MutVar s a -> MutVar s a

    classy-prelude-yesod ClassyPrelude.Yesod

    Since 0.2.0

  5. atomicModifyMutVar :: PrimMonad m => MutVar (PrimState m) a -> (a -> (a, b)) -> m b

    classy-prelude-yesod ClassyPrelude.Yesod

    Atomically mutate the contents of a MutVar. This function is useful for using MutVar in a safe way in a multithreaded program. If you only have one MutVar, then using atomicModifyMutVar to access and modify it will prevent race conditions. Extending the atomicity to multiple MutVars is problematic, so if you need to do anything more complicated, using MVar instead is a good idea. atomicModifyMutVar does not apply the function strictly. This means if a program calls atomicModifyMutVar many times, but seldom uses the value, thunks will pile up in memory resulting in a space leak. To avoid this problem, use atomicModifyMutVar' instead.

  6. atomicModifyMutVar' :: PrimMonad m => MutVar (PrimState m) a -> (a -> (a, b)) -> m b

    classy-prelude-yesod ClassyPrelude.Yesod

    Strict version of atomicModifyMutVar. This forces both the value stored in the MutVar as well as the value returned.

  7. mkWeakTVar :: MonadUnliftIO m => TVar a -> m () -> m (Weak (TVar a))

    classy-prelude-yesod ClassyPrelude.Yesod

    Lifted version of mkWeakTVar

  8. modifyMutVar :: PrimMonad m => MutVar (PrimState m) a -> (a -> a) -> m ()

    classy-prelude-yesod ClassyPrelude.Yesod

    Mutate the contents of a MutVar. modifyMutVar does not apply the function strictly. This means if a program calls modifyMutVar many times, but seldom uses the value, thunks will pile up in memory resulting in a space leak. To avoid this problem, use modifyMutVar' instead.

  9. modifyMutVar' :: PrimMonad m => MutVar (PrimState m) a -> (a -> a) -> m ()

    classy-prelude-yesod ClassyPrelude.Yesod

    Strict version of modifyMutVar.

  10. modifyTVar :: TVar a -> (a -> a) -> STM ()

    classy-prelude-yesod ClassyPrelude.Yesod

    Mutate the contents of a TVar. N.B., this version is non-strict.

Page 79 of many | Previous | Next