laserpants / elm-burrito-update / Burrito.Update.Browser

application : { init : flags -> Url -> Browser.Navigation.Key -> Burrito.Update.Update model msg t, onUrlChange : Url -> msg, onUrlRequest : Browser.UrlRequest -> msg, subscriptions : model -> Platform.Sub.Sub msg, update : msg -> model -> Burrito.Update.Update model msg t, view : model -> Browser.Document msg } -> Platform.Program flags model msg

Used as a drop-in replacement for Browser.application, but instead creates a Program where init and update are based on the Update type of this library.

init : flags -> Url -> Navigation.Key -> Update model msg

update : msg -> model -> Update model msg

document : { init : flags -> Burrito.Update.Update model msg t, subscriptions : model -> Platform.Sub.Sub msg, update : msg -> model -> Burrito.Update.Update model msg t, view : model -> Browser.Document msg } -> Platform.Program flags model msg

Used as a drop-in replacement for Browser.document, but instead creates a Program where init and update are based on the Update type of this library.

init : flags -> Update model msg

update : msg -> model -> Update model msg