viewSentence takes one argument:
viewSentence : Words -> Html msg
viewSentence sentence =
But in the view you are passing two arguments:
view : Model -> Html msg
view model =
main_ [ class "section" ]
[ div [ class "container" ]
, div [ class "box" ]
[ class "has-text-centered" ]
[ text model.sentence ]
, viewSentence model.chosenSentence model.chosenWords
You are absolutely right! I was trying to code along with the writing, but still got some things wrong.
Just updated the article and added Ellie links.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.