Hello,
The error is saying that your view is producing messages that are
functions. This is because your `onClick` is using `UpdateModel`, but
`UpdateModel` itself is not a message: `UpdateModel` needs a String value
to become a Msg.
Possible fixes would be:
1) Change UpdateModel to not take an
Right here, you're saying that the UpdateModel type takes a String:
> type Msg = UpdateModel String
>
> update: Msg -> String -> String
> update action model =
> case action of
> UpdateModel newModel ->
> newModel
>
> view: String -> Html a
> view model =
> div[]
> [
> input[ty
Hi there,
I'm pretty new to elm and I'm facing an issue I can't resolve by myself...
I would like to display a text entered in a textbox by clicking on a
button. But elm detects an error with the definition of view. It says :
-
Detected errors in 1 module.
-- TYPE MISMATCH
-