feldspar-language-0.7: A functional embedded language for DSP and parallelism

Safe HaskellNone
LanguageHaskell2010

Feldspar.Core.Frontend.MutableReference

Documentation

newtype Ref a Source

Constructors

Ref 

Fields

unRef :: Data (IORef (Internal a))
 

Instances

Syntax a => Syntactic (Ref a) 
type Internal (Ref a) = IORef (Internal a) 
type Domain (Ref a) = FeldDomain 

newRef :: Syntax a => a -> M (Ref a) Source

getRef :: Syntax a => Ref a -> M a Source

setRef :: Syntax a => Ref a -> a -> M () Source

modifyRef :: Syntax a => Ref a -> (a -> a) -> M () Source