2022-04-12 21:46:36 +03:00
|
|
|
module Main exposing (main)
|
|
|
|
|
|
|
|
import App exposing (..)
|
|
|
|
import Browser
|
2022-04-12 22:17:41 +03:00
|
|
|
import Browser.Navigation as Navigation
|
2022-04-12 21:46:36 +03:00
|
|
|
|
|
|
|
|
2022-04-12 22:17:41 +03:00
|
|
|
main : Program () (Model Navigation.Key) Msg
|
2022-04-12 21:46:36 +03:00
|
|
|
main =
|
|
|
|
Browser.application
|
2022-04-12 22:17:41 +03:00
|
|
|
{ init =
|
|
|
|
\() flags key ->
|
|
|
|
let
|
|
|
|
( model, effect ) =
|
|
|
|
init () flags key
|
|
|
|
in
|
|
|
|
( model, perform model.navigationKey effect )
|
|
|
|
, update =
|
|
|
|
\msg oldModel ->
|
|
|
|
let
|
|
|
|
( model, effect ) =
|
|
|
|
update msg oldModel
|
|
|
|
in
|
|
|
|
( model, perform model.navigationKey effect )
|
2022-04-12 21:46:36 +03:00
|
|
|
, subscriptions = subscriptions
|
|
|
|
, view = view
|
|
|
|
, onUrlRequest = OnUrlRequest
|
|
|
|
, onUrlChange = OnUrlChange
|
|
|
|
}
|