Idris2Doc : Data.MSF.Running

Data.MSF.Running

(source)

Definitions

step : Monadm=>MSFmio->i->m (o, MSFmio)
  Single step evaluation of monadic stream functions.
This is used to drive a typical application using
MSFs for processing input.

Totality: total
Visibility: export
embed : Monadm=>Listi->MSFmio->m (Listo)
  Uses the given MSF to process a list of input
values. This is useful for testing MSFs.

Totality: total
Visibility: export
embedI : Listi->MSFIdentityio->Listo
  `embed` using the `Identity` monad.

Totality: total
Visibility: export
size : MSFmio->Nat
  Calculates the size (number of constructors)
of a MSF. This is useful for testing and
possibly optimizing applications.

Totality: total
Visibility: export
recordHandler : (Type->Type) ->Type->Type
  An event handler typically used as an auto-implicit argument

Totality: total
Visibility: public export
Constructor: 
H : (e->m ()) ->Handlerme

Projection: 
.handle_ : Handlerme->e->m ()

Hint: 
Contravariant (Handlerm)
.handle_ : Handlerme->e->m ()
Totality: total
Visibility: public export
handle_ : Handlerme->e->m ()
Totality: total
Visibility: public export
handle : Handlerme=>e->m ()
Totality: total
Visibility: export
reactimate : HasIOm=> (Handlerme->m (MSFme (), m ())) ->m (m ())
  Create a monadic stream function (the reactive behavior
of an UI, for instance)
by passing the given generation function `sf` an event handler
that can be registered at reactive components.
The MSF will then be invoked and
evaluated whenever an event is fired.

Totality: total
Visibility: export
reactimateIni : HasIOm=>e-> (Handlerme->m (MSFme (), m ())) ->m (m ())
  Like `reactimate`, but evaluates the `MSF` once at the beginning by
passing it the given initial event.

Totality: total
Visibility: export