Copyright | (c) 2019 Edward Kmett |
---|---|
License | BSD-2-Clause OR Apache-2.0 |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable<Paste> |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Documentation
data ConstMutVar s a Source #
Instances
Constable (ConstMutVar s :: Type -> Type) (ConstMutVar s :: Type -> Type) Source # | |
Defined in Data.Const.Unsafe | |
Constable (ConstMutVar s :: Type -> Type) (MutVar s :: Type -> Type) Source # | |
Defined in Data.Const.Unsafe | |
Eq (ConstMutVar s a) Source # | |
Defined in Data.Const.Unsafe (==) :: ConstMutVar s a -> ConstMutVar s a -> Bool # (/=) :: ConstMutVar s a -> ConstMutVar s a -> Bool # |
constMutVar :: AMutVar s p => p a -> ConstMutVar s a Source #
type AMutVar s = Constable (ConstMutVar s) Source #
readAMutVar :: forall m p a. (PrimMonad m, AMutVar (PrimState m) p) => p a -> m a Source #