This code works without the type annotation, but I can't figure out how to annotate the formView function. I also don't know if this is a generic function or what this is actually called?
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
type Msg = EmailChanged String | PasswordChanged String
formView : String -> msg -> Html Msg
formView label msg = div [] [text (label ++ ": "), input [onInput msg] []]
main = div [] [formView "Email" EmailChanged, formView "Password" PasswordChanged]
<function> : String -> (String -> msg) -> Html msg- tableadventure