linsyking/messenger-extra/5.0.0

NOTE: the latest version is 7.0.0

Renamed to elm-messenger/messenger-extra. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as linsyking/messenger-extra still install under that name. 12 versions of 20 come from the new location (see their notes).

Messenger.Layer.LayerExtra

Layer extra features

type alias BasicUpdater data cdata userdata tar msg scenemsg =
Env cdata userdata
-> UserEvent
-> data
-> ( data
, List (MMsg tar msg scenemsg userdata)
, ( Env cdata userdata, Bool )
)

Basic Update Type

A basic updater type used to update the basic data of the layer with event.

Users can use it as the first step of the update process

type alias Distributor data cdata userdata tar msg scenemsg cmsgpacker =
Env cdata userdata
-> UserEvent
-> data
-> ( data
, ( List (MMsg tar msg scenemsg userdata), cmsgpacker )
, Env cdata userdata
)

Distributor Type

A distributor is used to generate several list of Component Msgs for corresponding components list.

The cmsgpacker is a custom type to store the component msgs and their targets. Specifically, a cmsgpacker type should be a record of different List ( ComponentTarget, ComponentMsg ).