hnix-0.10.1: Haskell implementation of the Nix language
Safe HaskellNone
LanguageHaskell2010

Nix.Var

Documentation

type Var m = Ref m Source #

eqVar :: forall m a. GEq (Ref m) => Ref m a -> Ref m a -> Bool Source #

newVar :: MonadRef m => a -> m (Ref m a) Source #

readVar :: MonadRef m => Ref m a -> m a Source #

writeVar :: MonadRef m => Ref m a -> a -> m () Source #

atomicModifyVar :: MonadAtomicRef m => Ref m a -> (a -> (a, b)) -> m b Source #

Orphan instances

GEq IORef Source # 
Instance details

Methods

geq :: forall (a :: k) (b :: k). IORef a -> IORef b -> Maybe (a :~: b) #

GEq (STRef s :: Type -> Type) Source # 
Instance details

Methods

geq :: forall (a :: k) (b :: k). STRef s a -> STRef s b -> Maybe (a :~: b) #