Skip to content

Instantly share code, notes, and snippets.

@neerajsingh0101
Created July 12, 2017 13:13
Show Gist options
  • Save neerajsingh0101/60627801877312ea95e328f704e5245a to your computer and use it in GitHub Desktop.
Save neerajsingh0101/60627801877312ea95e328f704e5245a to your computer and use it in GitHub Desktop.
module Main exposing (..)
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
main =
Html.beginnerProgram { model = model, view = view, update = update }
model : { name : String, age : Int }
model =
{ name = "Sam", age = 23 }
type Msg
= Noop
update : Msg -> { name : String, age : Int } -> { name : String, age : Int }
update msg model =
model
view : { name : String, age : Int } -> Html Msg
view model =
div [] [ text (toString model) ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment