linsyking/messenger-extra/1.2.1

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).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/elm-messenger/messenger-extra.

What we checked: The repo moved to github.com/elm-messenger/messenger-extra. Rebuilt with git archive from commit de079ad35823 of https://github.com/elm-messenger/messenger-extra (zip prefix linsyking-messenger-extra-4b6aad9/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 0d5f2957151f79ab7f726c12594498518e2021bf.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/linsyking/messenger-extra/zipball/1.2.1/

Messenger.Layer.LayerExtra

Layer extra features

type alias BasicUpdater data cdata userdata tar msg scenemsg =
Env cdata userdata
-> UserEvent
-> data
-> ( data
, List (Msg tar msg (SceneOutputMsg 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 (Msg tar msg (SceneOutputMsg 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 ).