Idris2Doc : Data.Ref

Data.Ref

Reexports

importpublic Data.IORef
importpublic Control.Monad.ST

Definitions

interfaceRef : (Type->Type) -> (Type->Type) ->Type
Parameters: m, r
Constraints: Monad m
Methods:
newRef : a->m (ra)
readRef : ra->ma
writeRef : ra->a->m ()
modifyRef : (a->a) ->ra->ma
  Updates a value and returns the previous value

Implementations:
HasIOio=>RefioIORef
Ref (STs) (STRefs)
newRef : Refmr=>a->m (ra)
Totality: total
Visibility: public export
readRef : Refmr=>ra->ma
Totality: total
Visibility: public export
writeRef : Refmr=>ra->a->m ()
Totality: total
Visibility: public export
modifyRef : Refmr=> (a->a) ->ra->ma
  Updates a value and returns the previous value

Totality: total
Visibility: public export
modifyRef_ : Refmr=> (a->a) ->ra->m ()
Totality: total
Visibility: public export
ForRef : Refmr=>Monadm=>ra->MonadStateam
Totality: total
Visibility: export