Created
December 10, 2017 19:21
-
-
Save aceakash/955ae07b67afdeaeb3bb2fa42baeb874 to your computer and use it in GitHub Desktop.
Elm beginner program
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 Html | |
main : Program Never Model Msg | |
main = | |
Html.beginnerProgram { model = initialModel, view = view, update = update } | |
type alias Model = | |
String | |
initialModel : Model | |
initialModel = | |
"Akash" | |
type Msg | |
= NoOp | |
update : Msg -> Model -> Model | |
update msg model = | |
case msg of | |
NoOp -> | |
model | |
view : Model -> Html.Html Msg | |
view model = | |
Html.div [] [ Html.text "Hello world" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment