Last active
October 5, 2020 15:40
-
-
Save TayKangSheng/aa05fad19c59f32c8011f8d49095db6e to your computer and use it in GitHub Desktop.
Browser.application template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Site exposing (..) | |
import Browser exposing (Document, UrlRequest) | |
import Browser.Navigation exposing (Key) | |
import Url exposing (Url) | |
type alias Flags = | |
{} | |
type alias Model = | |
{} | |
type Message | |
= NoOp | |
main : Program Flags Model Message | |
main = | |
Browser.application | |
{ init = init | |
, view = view | |
, update = update | |
, subscriptions = subscriptions | |
, onUrlRequest = onUrlRequest | |
, onUrlChange = onUrlChange | |
} | |
init : Flags -> Url -> Key -> ( Model, Cmd Message ) | |
init _ _ _ = | |
Debug.todo "implement init" | |
view : Model -> Document Message | |
view _ = | |
Debug.todo "implement view" | |
update : Message -> Model -> ( Model, Cmd Message ) | |
update _ _ = | |
Debug.todo "implement update" | |
subscriptions : Model -> Sub Message | |
subscriptions model = | |
Sub.none | |
onUrlRequest : UrlRequest -> Message | |
onUrlRequest _ = | |
Debug.todo "implement onUrlRequest" | |
onUrlChange : Url -> Message | |
onUrlChange _ = | |
Debug.todo "implement onUrlChange" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment