evancz / url-parser

Parse URLs into nicely structured data
http://package.elm-lang.org/packages/evancz/url-parser/latest/
BSD 3-Clause "New" or "Revised" License
114 stars 29 forks source link

Minor bug at the comment section of the 'oneOf' function #52

Open frantaz opened 6 years ago

frantaz commented 6 years ago
{-

    route : Parser (Route -> a) a
    route =
      oneOf
        [ map Search  (s "search" </> string)
        , map Blog    (s "blog" </> int)
        , map User    (s "user" </> string)
        , map Comment (s "user" </> string </> "comments" </> int)
        ]

-}

The s function call is missing at map Comment (s "user" </> string </> s "comments" </> int)

frantaz commented 6 years ago

Sorry, it has been fixed.