Created
June 14, 2018 16:10
-
-
Save rippinrobr/534ee6c4cb782653593757cf66d045c3 to your computer and use it in GitHub Desktop.
the main and update functions
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
update msg model = | |
if msg.operation == "SELECT_TAG" then | |
{ model | selectedTag = msg.data } | |
else | |
model | |
main = | |
Html.beginnerProgram | |
{ model = initialModel | |
, view = view | |
, update = update | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment