Skip to content

Instantly share code, notes, and snippets.

@manuscrypt
Created May 10, 2019 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuscrypt/1c6c9f6dbd90cd9ee777f288ce062601 to your computer and use it in GitHub Desktop.
Save manuscrypt/1c6c9f6dbd90cd9ee777f288ce062601 to your computer and use it in GitHub Desktop.
module Main exposing (Flags, Model, Msg(..), init, main, subscriptions, update, view)
import Browser exposing (Document, UrlRequest)
import Browser.Navigation exposing (Key)
import Url exposing (Url)
type alias Flags =
{}
type alias Model =
{}
type Msg
= OnUrlRequest UrlRequest
| OnUrlChange Url
main : Program Flags Model Msg
main =
Browser.application
{ init = init
, view = view
, update = update
, subscriptions = subscriptions
, onUrlRequest = OnUrlRequest
, onUrlChange = OnUrlChange
}
init : Flags -> Url -> Key -> ( Model, Cmd Msg )
init flags url key =
( {}, Cmd.none )
view : Model -> Document Msg
view model =
{ title = "Title"
, body = []
}
update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
( model, Cmd.none )
subscriptions : Model -> Sub Msg
subscriptions model =
Sub.none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment