I’m following the knowthen course for elm, but it’s in 0.18 and somethings have changed. I’ve been able to figure out most of the changes on my own, but can’t seem to get this working. This is the original code from the course elm/first-app-improved at master · knowthen/elm · GitHub and I was able to fix everything except this part:
Input val ->
case String.toInt val of
Ok input ->
{ model
| input = input
, error = Nothing
}
Err err ->
{ model
| input = 0
, error = Just err
}