Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finalize the naming/types of IsRoute class #119

Merged
merged 10 commits into from
Jul 18, 2022
Merged

Finalize the naming/types of IsRoute class #119

merged 10 commits into from
Jul 18, 2022

Conversation

srid
Copy link
Owner

@srid srid commented Jul 17, 2022

No description provided.

srid added 9 commits July 17, 2022 15:15
Because, it is consistent with routeEncoder. All types/methods are now
prefixed with "route":

- RouteModel
- routeEncoder
- routeUniverse
Especially it puts the model argument in the function argument itself,
just like routeUniverse.
allRoutes :: RouteModel r -> [r]

-- | An optics `Prism'` that denotes how to encode and decode a route.
routePrism :: RouteModel r -> Prism_ FilePath r
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really wish we could use Prism' (optics-core) here ... but: https://stackoverflow.com/q/71489589/55246

@srid srid merged commit fa040b0 into multisite Jul 18, 2022
@srid srid deleted the isroute-naming branch July 18, 2022 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant