dillonkearns/elm-pages/12.1.2

NOTE: the latest version is 12.3.0

Pages.PageUrl

Same as a Url in elm/url, but slightly more structured. The path portion of the URL is parsed into a List String representing each segment, and the query params are parsed into a Dict String (List String).

type alias PageUrl =
{ protocol : Protocol
, host : String
, port_ : Maybe Int
, path : UrlPath
, query : Dict String (List String)
, fragment : Maybe String
}
toUrl : PageUrl -> Url
parseQueryParams : String -> Dict String (List String)