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

Allow newer versions of template-haskell #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

None yet

1 participant