const-0: Read-only mutable primitives

Copyright(c) 2019 Edward Kmett
LicenseBSD-2-Clause OR Apache-2.0
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable<Paste>
Safe HaskellTrustworthy
LanguageHaskell2010

Data.Const.Primitive.MutVar

Description

 

Documentation

data ConstMutVar s a Source #

Instances
Constable (ConstMutVar s :: Type -> Type) (ConstMutVar s :: Type -> Type) Source # 
Instance details

Defined in Data.Const.Unsafe

Constable (ConstMutVar s :: Type -> Type) (MutVar s :: Type -> Type) Source # 
Instance details

Defined in Data.Const.Unsafe

Eq (ConstMutVar s a) Source # 
Instance details

Defined in Data.Const.Unsafe

Methods

(==) :: ConstMutVar s a -> ConstMutVar s a -> Bool #

(/=) :: ConstMutVar s a -> ConstMutVar s a -> Bool #

constMutVar :: AMutVar s p => p a -> ConstMutVar s a Source #

readAMutVar :: forall m p a. (PrimMonad m, AMutVar (PrimState m) p) => p a -> m a Source #