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

elm.Main018.mustache Maven / Gradle / Ivy

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

import Html exposing (Html)


main : Program Never Model Msg
main =
    Html.program
        { 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