Commit Graph

21 Commits

Author SHA1 Message Date
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
029fc7166d Fix some warnings 2013-03-20 12:45:35 +02:00
Michael Snoyman
4d8c19becd yesod-routes: parsing included 2013-03-19 15:13:56 +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
01eae3351a Avoid the annoying "y shadowed" GHC warnings 2012-10-12 10:22:18 +02: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
Michael Snoyman
e16ed57849 Overlap checking (and addresses #174) 2012-01-10 13:42:35 +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