Commit Graph

64 Commits

Author SHA1 Message Date
Michael Snoyman
e6eae8ee5a Merge remote-tracking branch 'origin/master' into yesod-1.4
Conflicts:
	yesod-routes/Yesod/Routes/Parse.hs
	yesod-routes/test/Hierarchy.hs
	yesod-routes/yesod-routes.cabal
2014-07-26 21:20:31 +03:00
Michael Snoyman
e23c78f2ce Better overlap rules #779
We now have the concept that either an entire route is overlap checked
or not. This is essentially what we had before, except there was code
littered everywhere on the mistaken assumption that just one component
could be overlap checked. This also allows us to mark parent routes or
multipiece components as non-overlapped checked.

In addition, if you put a bang at the beginning of the pattern, the
entire route is not overlap checked. The previous syntax is kept for
backwards compatibility.
2014-07-23 12:40:24 +03:00
Michael Snoyman
4c31714a25 Special support for key-value pairs in route attributes #762 2014-06-24 08:46:08 +03:00
Michael Snoyman
4858f0837b Attributes can be set on parent routes #762 2014-06-18 19:51:27 +03:00
Michael Snoyman
e61c98507b Workaround for some meaningless warnings 2014-04-09 21:34:36 +03:00
Michael Snoyman
5cb02e2a9b Minor tweaks 2014-03-04 15:02:01 +02:00
Michael Snoyman
c19088d569 Switch yesod-core to use simpler dispatch 2014-03-04 13:46:03 +02:00
Michael Snoyman
750bc9c9ac All simpler dispatch tests pass 2014-03-04 13:41:16 +02:00
Michael Snoyman
9fad1071fc Incomplete changes 2014-02-24 14:20:17 +02:00
Michael Snoyman
47d136b057 Allow !# as well as #! #652 2014-01-11 19:51:04 +02:00
Michael Snoyman
1429ae83eb Improved overlap checking for nesting #632 2013-12-18 08:24:32 +02:00
Michael Snoyman
48ea50ac93 Filter out blank lines in route parsing #629 2013-12-11 17:00:03 +02:00
Felipe Lessa
3fa327c662 Use qAddDependentFile on parseRoutesFile*. 2013-06-06 12:52:40 -03:00
Michael Snoyman
04f23c740a Not experimental 2013-04-23 22:23:02 +03:00
Michael Snoyman
42943deab9 Better route type parsing (fixes #471) 2013-04-22 15:01:52 +03:00
Michael Snoyman
16260f3e37 RouteAttrs (fixes #531) 2013-04-21 17:14:40 +03:00
Michael Snoyman
64ef26104d Route attributes/appcache example #518 2013-04-11 17:07:22 +03:00
Michael Snoyman
029fc7166d Fix some warnings 2013-03-20 12:45:35 +02:00
Michael Snoyman
fb4045ea45 Warning cleanup 2013-03-20 11:46:32 +02:00
Michael Snoyman
56e9432393 Add an underscore 2013-03-19 15:17:59 +02:00
Michael Snoyman
4d8c19becd yesod-routes: parsing included 2013-03-19 15:13:56 +02:00
Michael Snoyman
2a719941ca Some parsing fixes (not complete) 2013-03-17 13:35:30 +02:00
Michael Snoyman
bca0d24533 Route parsing 2013-03-17 13:28:17 +02:00
Michael Snoyman
2aefef4414 YesodSubDispatch 2013-03-13 08:48:28 +02:00
Michael Snoyman
9a53092be7 Remove yreRoute 2013-03-13 07:20:20 +02:00
Michael Snoyman
815e185a4b Slight simplification to YesodDispatch typeclass 2013-03-13 07:12:19 +02:00
Michael Snoyman
04a034770b Beginning of a dispatch overhaul 2013-03-12 10:21:26 +02:00
Michael Snoyman
617c1d724e Removed some FIXMEs 2013-01-02 14:26:56 +02:00
Michael Snoyman
01eae3351a Avoid the annoying "y shadowed" GHC warnings 2012-10-12 10:22:18 +02:00
Michael Snoyman
ebc737a5cb conduit 0.5 2012-06-22 15:28:14 +03:00
Michael
0e0880dfe4 Hierarchy dispatching 2012-06-13 10:00:20 +03:00
Michael
255d71171c Beginning of hierarchichal routes, not done 2012-06-13 09:26:21 +03:00
Piyush P Kurur
4676331db3 some documentation fixes to mkDispatchClause 2012-03-17 05:34:15 +05:30
Greg Weber
6baedfecea Merge pull request #286 from piyush-kurur/master
mkRenderRouteInstance with context
2012-03-10 22:20:15 -08:00
Piyush P Kurur
9c26f86f91 added mkRenderRouteInstance' a more general version of mkRenderRouteInstance 2012-03-09 15:34:00 +05:30
jonnadal
458d7c50b1 fixed a typo 2012-02-09 13:30:21 -05:00
Greg Weber
0eb62a92c3 fix typo 2012-02-05 08:50:02 -06:00
Greg Weber
eaa3eb8ac3 slightly DRY code 2012-02-04 18:27:33 -06:00
Michael Snoyman
4d45bfeb13 Fixes to overlapping tests 2012-01-10 14:02:05 +02:00
Michael Snoyman
e16ed57849 Overlap checking (and addresses #174) 2012-01-10 13:42:35 +02:00
Michael Snoyman
babd7903b9 Setup for overlap routing 2012-01-10 13:24:20 +02:00
Michael Snoyman
5321bd0dfa Fix warnings 2012-01-05 15:47:24 +02:00
Michael Snoyman
1e8b15acff Move route parsing to yesod-routes 2012-01-05 05:38:31 +02:00
Michael Snoyman
c499e880b6 yesod-core compiles with yesod-routes (tests fail) 2012-01-03 20:33:51 +02:00
Michael Snoyman
fa4fd5690f Updated yesod-routes docs 2012-01-03 13:41:41 +02:00
Michael Snoyman
09750605a8 Dispatching works! (w00t) 2012-01-03 12:55:08 +02:00
Michael Snoyman
c946fd2068 Disaptch TH code mostly written 2012-01-03 12:34:34 +02:00
Michael Snoyman
dc8f7946dc Better dispatch sample code 2012-01-03 11:35:16 +02:00
Michael Snoyman
a14851d956 Get it to build again 2012-01-03 08:37:23 +02:00
Michael Snoyman
666e242ee9 yesod-routes refactor 2012-01-03 08:33:44 +02:00