Skip to content

Conversation

@iteratee
Copy link

Also export mkRouteData, mkRouteDispatch and mkRouteSubDispatch to allow separation of the data type from the routable instance.

Bump the version while we're at it, as there are new features exposed.

I'm not so certain about the changes to the cabal file, feel free to make suggestions or edits.

Also, I suspect it would be better to bump the version in a separate commit. Just let me know.

We want to be able to compile with the newer versions of
template-haskell, without removing the ability to compile against older
versions if possible. Use the MIN_VERSION_template-haskell macro to
guard the changes. Add {-# LANGUAGE CPP #-} where necessary.
Exporting these previously internal helper functions allows the
separation of the data constructor and the route instance. Yesod allows
a similar separation. Without this, it can be tricky to avoid circular
module dependencies. `mkRoute` and `mkRouteSub` are still exported as
before.
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