Exactly, it's a type parameter. Html is parameterized by the type of
messages the form can produce.

On Oct 8, 2016 9:25 AM, "Dave Ford" <[email protected]> wrote:

> I understand this function signature:
>
> update: Msg -> Model -> Model
>
> to mean the function takes two inputs, a Msg and a Model and returns a
> Model. Correct?
>
> But I don't understand this function signature:
>
> view: Model -> Html Msg
>
> It seems that the view function takes a Model and returns an Html. What
> exactly does the Msg mean in this context? Is it a type parameter to Html?
> Like Html<Msg> in Java?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to