elm/url

Docs for Url.Parser.Query.custom mention non-existing List.maybeMap

Janiczek opened this issue · 2 comments

https://package.elm-lang.org/packages/elm/url/latest/Url-Parser-Query#custom
This is the example in the documentation:

posts : Parser (Maybe (List Int))
posts =
  custom "post" (List.maybeMap String.toInt)

-- ?post=2        == [2]
-- ?post=2&post=7 == [2, 7]
-- ?post=2&post=x == [2]
-- ?hats=2        == []

List.maybeMap doesn't exist.

The correct function is List.filterMap. The PR fixes the docs.

Fixed in #28