tricycle/system-actor-model/3.0.0

NOTE: the latest version is 9.0.0

Renamed to bellroy/system-actor-model. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as tricycle/system-actor-model still install under that name. 26 versions of 26 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/bellroy/system-actor-model.

What we checked: The repo moved to github.com/bellroy/system-actor-model. Rebuilt with git archive from commit 8ad33eec6c31 of https://github.com/bellroy/system-actor-model (zip prefix tricycle-system-actor-model-d3b990b/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 5ef0cdaa20c325634d23af9691b4222a3305180e.

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/tricycle/system-actor-model/zipball/3.0.0/

System.Browser

This module helps you set up an System Program.

Elements

Create an HTML element managed by Elm.

{ apply :
actorModel
-> SystemActor
actorModel
output
(Message address actorName wrappedMsg)
, factory :
actorName
-> ( PID, Value )
-> ( actorModel, Message address actorName wrappedMsg )
, init : flags -> List (Message address actorName wrappedMsg)
, view : List output -> Html (Message address actorName wrappedMsg)
, onLogMessage :
LogMessage address actorName wrappedMsg
-> Message address actorName wrappedMsg
}
-> Program flags address actorName actorModel wrappedMsg

Create an HTML element managed by Elm through a System.

Applications

Create an application that manages Url changes.

When the application starts, init gets the initial Url. You can show different things depending on the Url!

When someone clicks a link, like

Home

, it always goes through onUrlRequest. The resulting message goes to your update function, giving you a chance to save scroll position or persist data before changing the URL yourself with pushUrl or load. More info on this in the UrlRequest docs!

When the URL changes, the new Url goes through onUrlChange. The resulting message goes to update where you can decide what to show next.

Applications always use the Browser.Navigation module for precise control over Url changes.

{ apply :
actorModel
-> SystemActor
actorModel
output
(Message address actorName wrappedMsg)
, factory :
actorName
-> ( PID, Value )
-> ( actorModel, Message address actorName wrappedMsg )
, init :
flags -> Url -> Key -> List (Message address actorName wrappedMsg)
, view :
List output -> List (Html (Message address actorName wrappedMsg))
, onUrlRequest : UrlRequest -> Message address actorName wrappedMsg
, onUrlChange : Url -> Message address actorName wrappedMsg
, onLogMessage :
LogMessage address actorName wrappedMsg
-> Message address actorName wrappedMsg
}
-> Program flags address actorName actorModel wrappedMsg

Create an Application managed by Elm through a System