Hi, I am new to Elm and I am trying to build a blog post website. Since this blog has many pages in general, I have views for every page. I am slightly confused with Msg here.
An example is:
Page1:
view1: ModelA->Html AbcMsg
{let…
in…
}
Page2:
view2: ModelB -> Html Msg
{…
div [ ]
[view1] //error
}
The error I get is:
The div call produces:
Html AbcMsg
But the annotation on view2 says it should be Html Msg
But when I try to add Html AbcMsg instead of Html Msg, it gives new errors. How can I resolve this?