Hoogle Search

Within LTS Haskell 24.17 (ghc-9.10.3)

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

  1. atomicSwapUnliftedMutVar :: (PrimMonad m, PrimUnlifted a) => UnliftedMutVar (PrimState m) a -> a -> m a

    primitive-unlifted Data.Primitive.Unlifted.MutVar

    No documentation available.

  2. casUnliftedMutVar :: (PrimMonad m, PrimUnlifted a) => UnliftedMutVar (PrimState m) a -> a -> a -> m (Bool, a)

    primitive-unlifted Data.Primitive.Unlifted.MutVar

    No documentation available.

  3. modifyUnliftedMutVar :: (PrimMonad m, PrimUnlifted a) => UnliftedMutVar (PrimState m) a -> (a -> a) -> m ()

    primitive-unlifted Data.Primitive.Unlifted.MutVar

    No documentation available.

  4. modifyUnliftedMutVar' :: (PrimMonad m, PrimUnlifted a) => UnliftedMutVar (PrimState m) a -> (a -> a) -> m ()

    primitive-unlifted Data.Primitive.Unlifted.MutVar

    No documentation available.

  5. newUnliftedMutVar :: (PrimMonad m, PrimUnlifted a) => a -> m (UnliftedMutVar (PrimState m) a)

    primitive-unlifted Data.Primitive.Unlifted.MutVar

    No documentation available.

  6. readUnliftedMutVar :: (PrimMonad m, PrimUnlifted a) => UnliftedMutVar (PrimState m) a -> m a

    primitive-unlifted Data.Primitive.Unlifted.MutVar

    No documentation available.

  7. writeUnliftedMutVar :: (PrimMonad m, PrimUnlifted a) => UnliftedMutVar (PrimState m) a -> a -> m ()

    primitive-unlifted Data.Primitive.Unlifted.MutVar

    No documentation available.

  8. data UnliftedMutVar# s (a :: UnliftedType)

    primitive-unlifted Data.Primitive.Unlifted.MutVar.Primops

    An UnliftedMutVar# behaves like a single-element mutable array.

  9. atomicSwapUnliftedMutVar# :: forall s (a :: UnliftedType) . UnliftedMutVar# s a -> a -> State# s -> (# State# s, a #)

    primitive-unlifted Data.Primitive.Unlifted.MutVar.Primops

    Atomically replace the value in an UnliftedMutVar# with the given one, returning the old value. Implementation note: this really should be a GHC primop, because it is supported very efficiently in hardware, but unfortunately it's not (yet), so we implement it as a CAS loop.

  10. casUnliftedMutVar# :: forall s (a :: UnliftedType) . UnliftedMutVar# s a -> a -> a -> State# s -> (# State# s, Int#, a #)

    primitive-unlifted Data.Primitive.Unlifted.MutVar.Primops

    Performs a machine-level compare and swap (CAS) operation on an UnliftedMutVar#. Returns a tuple containing an Int# which is '1#' when a swap is performed, along with the most "current" value from the UnliftedMutVar#. This return value can be used as the expected value if a CAS loop is required, though it may be better to get a fresh read. Note that this behavior differs from the more common CAS behavior, which is to return the old value before the CAS occured.

Page 25 of many | Previous | Next