Ich bin ganz neu in Elm und ich bin zu kämpfen, um zu sehen, was hier falsch ist ..Elm Html und Ansicht: Modell -> Html Msg
view : Model -> Html Msg
view model = div [] [ button [ onClick NewStrategy ] [ text "-" ] ]
beklagt, dass ..
The type annotation for `view` says it always returns:
Html (Msg)
But the returned value (shown above) is a:
Html (String -> Msg)
Es sieht für mich nicht ähnlich zu http://elm-lang.org/examples/buttons. Ein div mit einem Knopf innen mit einem onClick und etwas Text.
Was fehlt mir hier?
macht absolut Sinn. – Stimul8d