Last active
June 12, 2018 15:04
-
-
Save arsduo/ec1efc605165c9e2ce4ff13c577fe2f4 to your computer and use it in GitHub Desktop.
Simple Sample 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
| -- MODEL | |
| model = 0 | |
| -- UPDATE | |
| type Msg | |
| = Increment Int | |
| | Decrement Int | |
| update msg model = | |
| case msg of | |
| Increment int -> | |
| model + int | |
| Decrement int -> | |
| model - int |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment