The string import is unnecessary (in the Defining a Parser section) as Parser.string is used in the rest of the code.
import Url.Parser as Parser exposing ((</>), Parser, s, string)
should be
import Url.Parser as Parser exposing ((</>), Parser, s)
This import is also present in Listing 8.4.
The
stringimport is unnecessary (in theDefining a Parsersection) asParser.stringis used in the rest of the code.should be
This import is also present in
Listing 8.4.