Created
November 24, 2017 20:17
-
-
Save Chadtech/aab5edb0d1105473602771d9fe1ae4cd to your computer and use it in GitHub Desktop.
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 = | |
| case msg of | |
| LoginClicked -> | |
| attemptLogin model | |
| FormSubmitted -> | |
| model | |
| |> validate | |
| |> attemptLogin | |
| update msg model = | |
| case msg of | |
| FormEnter -> | |
| let | |
| (validatedModel, _) = | |
| update Validate model | |
| (newModel, cmd) = | |
| update Login validatedModel | |
| in | |
| update Login validatedModel | |
| Login -> | |
| attemptLogin model | |
| Validate -> | |
| validate model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment