madscatter
3/31/2019 - 12:24 AM

elm

elm

module Main exposing (main)

import Html exposing (..)


type alias Model =
    { name : String }


type Msg
    = NoOp


main : Program Never Model Msg
main =
    Html.program
        { init = init
        , view = view
        , update = update
        , subscriptions = subscriptions
        }


init : ( Model, Cmd Msg )
init =
    ( { name = "" }, Cmd.none )


view : Model -> Html Msg
view model =
    text "Hello"


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


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