ContaSystemer / elm-effects-time / Effects.Time

Time system is used to subscribe for time events. It uses effects for communication with other systems.

Create


type alias Effects msg =
Effects (Effect msg)

Time system effects which are used for communication with other systems.

every : Basics.Float -> (Time.Posix -> msg) -> Effects msg

Creates time system effect to subscribe for time event.

Transform

map : (msgA -> msgB) -> Effects msgA -> Effects msgB

Maps time system effects.

subscription : Effects msg -> Platform.Sub.Sub msg

Time system subscription for all effects.