The Elm compiler is telling you what is wrong.

onInput wants a string (
http://package.elm-lang.org/packages/elm-lang/html/1.0.0/Html-Events#onInput)
instead of an Int.
So the compile gives an error, because your program would break otherwise.
If you want to use an Int, you must transform the int to a string.

On Tue, 24 May 2016 at 14:44 Herwig Habenbacher <
[email protected]> wrote:

> Hello Together,
>
> just stumbled about this in Elm 0.17:
>
> If I only use Strings everything is fine, but as soon as I use an Integer
> in my Model I can't compile...
> Shouldn't Elm handle this easily?
>
> Cordially,
>
> Herwig
>
> (See attached file...)
>
>
>
> --
> 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