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

Safe HaskellNone

Feldspar.Core.Frontend.MutableReference

Documentation

newtype Ref a Source

Constructors

Ref 

Fields

unRef :: Data (IORef (Internal a))
 

Instances

Syntax a => Syntactic (Ref a) 

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

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

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

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