purescript-contrib/purescript-routing

Match an exact url

Closed this issue · 3 comments

There doesn't seem to be a way to say that you want to match only a certain string (like eof in attoparsec). Have I missed something, or is this the case and by design?

garyb commented

I think you're right that it's not possible, but not by design, just accident 😄

I just ran into the same thing. Would be nice to have an end match, or similar. Pux does this in their routing here.

I've put together a possible solution here, would love to hear your thoughts.