elm-twitch/src/Main.elm

30 lines
550 B
Elm
Raw Normal View History

2020-10-03 18:44:16 +02:00
module Main exposing (main)
import Browser
import Core
import Json.Decode as Decode
import Url
import Views
2020-10-04 13:15:57 +02:00
main : Program Decode.Value Core.FullModel Core.Msg
2020-10-03 18:44:16 +02:00
main =
Browser.application
{ init = Core.init
2020-10-04 13:15:57 +02:00
, update = Core.update
2020-10-03 18:44:16 +02:00
, view = Views.view
, subscriptions = \_ -> Sub.none
, onUrlChange = onUrlChange
, onUrlRequest = onUrlRequest
}
onUrlChange : Url.Url -> Core.Msg
onUrlChange _ =
Core.Noop
onUrlRequest : Browser.UrlRequest -> Core.Msg
onUrlRequest _ =
Core.Noop