AK
Size: a a a
AK
AK
к
PF
к
sum x =
case x of
[] ->
0
x :: xs ->
x + sum xs
sum x = case x of
[] -> 0
x :: xs -> x + sum xs
PF
w
view model =
div []
[ Html.form [ onSubmit Form ] [] ]
The definition of `view` does not match its type annotation.
The type annotation for `view` says it always returns:
Html (Msg)
But the returned value (shown above) is a:
Html (String -> Msg)
form
такойform : List (Attribute msg) -> List (Html msg) -> Html msg
AT
к
w
type Msg = Form String
AT
к
w
w
type Msg = Form
w
к
w
onInput
срабатывает после "снятия" фокуса с поля или после отпускания клавиши?w