All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elm.Main.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
module Main exposing (main)

import Browser
import Html exposing (Html)


main : Program () Model Msg
main =
    Browser.element
        { init = init
        , view = view
        , update = update
        , subscriptions = subscriptions
        }



-- MODEL


type alias Model =
    { value : Int
    }


init : () -> ( Model, Cmd Msg )
init _ =
    ( Model 0, Cmd.none )



-- UPDATE


type Msg
    = NoOp


update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
    case msg of
        NoOp ->
            ( model, Cmd.none )



-- SUBSCRIPTIONS


subscriptions : Model -> Sub Msg
subscriptions _ =
    Sub.none



-- VIEW


view : Model -> Html Msg
view _ =
    Html.text "main"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy