Idris2Doc : Control.RIO.State

Control.RIO.State

(source)

Definitions

recordRead : l->Type->Type
  Effectful getter, yielding values of type `a` and tagged
with label `lbl`.

Totality: total
Visibility: public export
Constructor: 
MkRead : IOa->Readlbla

Projection: 
.read : HasIOio=>Readlbla->ioa
  Read the current value of a getter.

Use this if you experience slowdowns with `readAt` durcing compilation.

Hint: 
STlbla=>Readlbla
readAt : (0lbl : l) ->Readlbla=>HasIOio=>ioa
  Read the current value of a getter.

Totality: total
Visibility: export
.read : HasIOio=>Readlbla->ioa
  Read the current value of a getter.

Use this if you experience slowdowns with `readAt` durcing compilation.

Totality: total
Visibility: export
dataST : l->Type->Type
  Mutable state holding values of type `a` and tagged
with label `lbl`.

Totality: total
Visibility: public export
Constructor: 
MkST : IOa-> (a->IO ()) -> ((a->a) ->IO ()) ->STlbla

Hint: 
STlbla=>Readlbla
mkST : HasIOio=>a->io (STlbla)
Totality: total
Visibility: export
stToRead : STlbla=>Readlbla
Totality: total
Visibility: export
mapST : (a->b) -> (b->a->a) ->STlbla->STlbl2b
  Viewing a mutable state through a getter and a setter.

Totality: total
Visibility: export
modifyAt : (0lbl : l) ->STlbla=>HasIOio=> (a->a) ->io ()
  Modify the value stored in a mutable reference.

Totality: total
Visibility: export
getAt : (0lbl : l) ->STlbla=>HasIOio=>ioa
  Write a value to a mutable reference.

Totality: total
Visibility: export
setAt : (0lbl : l) ->STlbla=>HasIOio=>a->io ()
  Write a value to a mutable reference.

Totality: total
Visibility: export
.get : HasIOio=>STlbla->ioa
  Read the current value of some mutable state.

Use this if you experience slowdowns with `getAt` durcing compilation.

Totality: total
Visibility: export
.set : HasIOio=>STlbla->a->io ()
  Overwrite the current value of some mutable state.

Use this if you experience slowdowns with `setAt` durcing compilation.

Totality: total
Visibility: export
.mod : HasIOio=>STlbla-> (a->a) ->io ()
  Modify the current value of some mutable state.

Use this if you experience slowdowns with `setAt` durcing compilation.

Totality: total
Visibility: export
Fixity Declaration: infixl operator, level 9