I’ve finally set up a Github account for easier code sharing
As suggested here I’m opening a new thread dedicated to my Elm-UI pains
Seems like I’m finally getting the hang of the ElmUI documentation … more or less.
One question that has arisen for me is… what TYPE are the functions I am writing? o_O
I would like to have a nice Type Declaration for every function, but I am not sure what is what.
I’ve been using the compiler-help to reverse-engineer the correct type declaration of all my current functions, except for these two…
view form = layout  <| row [ centerY, centerX, spacing 10 ] (other stuff)
the annotation should be?
view : Form -> ???
and also this one…
viewValidation model = let ( color, message ) = if model.validity then if isEmpty model.name then ( red, "Please input a valid username!" ) else if isEmpty model.age || all isDigit model.age == False then ( red, "Please input a valid age!" ) else if length model.password < 8 then ( red, "Password must be at least 8 characters!" ) else if any isDigit model.password == False then ( red, "Password must contain at least 1 number!" ) else if any isUpper model.password == False then ( red, "Password must contain at least 1 capital character!" ) else if any isLower model.password == False then ( red, "Password must contain at least 1 lower character!" ) else if model.password /= model.passwordAgain then ( red, "Passwords do not match!" ) else ( green, "All data checks out :)" ) else ( white, "empty filler" ) in el [ Font.color color ] (paragraph  [ text message ])