Commit Graph

23 Commits

Author SHA1 Message Date
Josh Berman
ec85ef735c Work with TH from GHC 8.2.1-rc2 2017-07-03 06:44:25 -04:00
James Parker
6b000ecfb4 Version bump and fix for old versions of TH. 2017-03-27 12:06:44 -04:00
James Parker
997714f4c2 Accept multiple argument types inside brackets 2017-03-27 02:42:47 -04:00
James Parker
adf89bcf84 Contexts can be parsed and included in instances. Standalone deriving is used when
a context is provided. Type variables can be included in routes/TH.
2017-03-27 00:10:32 -04:00
James Parker
6c7a40ea5b Adds curly brackets to route parser. 2017-03-22 18:30:08 -04:00
Michael Snoyman
954f813569 Fix route parsing for CRLF line endings 2017-02-07 15:49:23 +02:00
Ollie Charles
57a9420d99 yesod-core: Build with template-haskell-2.12.0 2017-01-04 13:08:09 +00:00
Mikkel Christiansen
50c4138a5c Take hlint suggestions. 2016-06-28 08:28:23 +02:00
Alex Greif
b85ffbaf52 fix typos 2016-05-17 17:21:03 +02:00
Erik de Castro Lopo
96af1e7f39 yesod-core: Fix for a *very* late change in ghc-8.0 TH api 2016-04-23 10:54:41 +10:00
Erik de Castro Lopo
21d27626b2 yesod-core: Fix for ghc-7.8 2016-04-19 15:18:46 +10:00
Erik de Castro Lopo
226c381baa yesod-core: Make it work with ghc-8.0
Use CPP hackery to make it compile with ghc-8.0 and ghc 7.10. If
ghc-7.10 works, I assume earlier supported versions of GHC also
work. All tests pass with both GHC versions.

Unfortunately, the TH changes force changes in the type signature
of Yesod.Routes.TH.RenderRoute.mkRouteCons from:

    mkRouteCons :: [ResourceTree Type] -> ([Con], [Dec])

to

    mkRouteCons :: [ResourceTree Type] -> Q ([Con], [Dec])

and I can't see a way around that.
2016-04-19 14:52:03 +10:00
Michael Snoyman
210f846af5 Merge pull request #1145 from ajnsit/hierarchical-subsites-args
Pass hierarchical route arguments to subsites
2016-04-12 07:27:47 +03:00
mrkkrp
3640d75c99 Allow lines of dashes in route files
See #1180.
2016-03-11 14:09:57 +06:00
Anupam Jain
9859fe1ddb Pass hierarchical route arguments to subsites 2016-01-19 15:21:15 +05:30
Anupam Jain
a1df470d01 Allow subsites within hierarchical routes 2016-01-13 10:47:50 +05:30
Eric Easley
21e49c7710 Fix tests for unwrapping hook 2015-12-10 09:53:55 -08:00
Eric Easley
56c19a2cd3 Add hook to apply arbitrary function to all handlers 2015-12-09 11:29:13 -08:00
Mikkel Christiansen
a47ceec445 GHC 7.10 import warnings removed from yesod-core. 2015-08-26 14:52:39 +02:00
Maximilian Tagher
e49ccb7871 Document Route typeclasses 2014-10-05 15:06:23 -07:00
Greg Weber
f633734a96 expose Yesod/Routes/TH/Types.hs 2014-09-30 12:44:09 -07:00
Michael Snoyman
3447510080 Clean up a bunch of warnings 2014-09-29 08:08:02 +03:00
Michael Snoyman
f779004d19 Merge yesod-routes into yesod-core entirely 2014-09-07 17:34:37 +03:00