Last active
August 14, 2020 08:49
-
-
Save shamansir/b9fc314071f09ad11c112b3ca73fb034 to your computer and use it in GitHub Desktop.
Elm program quick 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 Main exposing (..) | |
import Browser | |
import Html exposing (Html) | |
import Html as H | |
type alias Flags = () | |
type alias Model = () | |
type alias Msg = () | |
init : Flags -> ( Model, Cmd Msg ) | |
init _ = ( (), Cmd.none ) | |
update : Msg -> Model -> ( Model, Cmd Msg ) | |
update _ model = ( model, Cmd.none ) | |
subscription : Model -> Sub Msg | |
subscription _ = Sub.none | |
view : Model -> Html Msg | |
view _ = H.div [] [] | |
main : Program Flags Model Msg | |
main = | |
Browser.element | |
{ init = init | |
, update = update | |
, subscriptions = subscription | |
, view = view | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment