Hello everyone,
I'm reading Url.Parser source code to understand Elm's url parsing mechanism. I noticed that the type signature of parse function to be:
parse : Parser (a -> a) a -> Url -> Maybe a
Is that signature correct? But I think the correct signature should be:
parse : Parser (a -> b) b -> Url -> Maybe b
Did I misunderstand something here?
Would anyone please give me a hint, thank you very much!
Hello everyone, I'm reading Url.Parser source code to understand Elm's url parsing mechanism. I noticed that the type signature of parse function to be:
Is that signature correct? But I think the correct signature should be:
Did I misunderstand something here? Would anyone please give me a hint, thank you very much!