I have encountered that in the guide:
viewValidation : Model -> Html msg
viewValidation model =
let
(color, message) =
if model.password == model.
Html Msg
is just a type parameter, as List Int
is. While List Int
denotes a list that contains element of type Int
, similarly Html Msg
describes some HTML that can treat/emit messages of type Msg
.
For example, if you have a button inside your HTML, it could look like this:
button [ onClick DoSomething ] [ text "caption" ]
Where DoSomething
is a case of the Msg
type.