Commit Graph

478 Commits

Author SHA1 Message Date
Michael Snoyman
64f51da0df Require lifted-base 0.1.2 (Data.IORef.Lifted) 2013-05-07 11:15:59 +03:00
Greg Weber
eb779fb0f6 document UniqueList 2013-05-06 16:57:13 -05:00
Felipe Lessa
5c434b089a Rewrite handlerToIO so that it works with Yesod 1.2.
Since the new YesodRequest has strict fields, handlerToIO didn't
work at all.  Even if it did, it had a reference to its parent's
ResourceT's internal state, so its chances of blowing up were
quite high.

The new implementation takes a whitelist approach of taking what
we want instead of clearing what we do not want.  Also, it takes
care of using a new runResourceT.
2013-05-03 21:20:31 -03:00
Felipe Lessa
c19501b1d8 yesod-core: New 'customizeSessionCookies' helper function. 2013-05-03 20:56:52 -03:00
Michael Snoyman
1bcc05aee7 Workaround for #545 2013-05-03 08:44:23 +03:00
Michael Snoyman
3e7d4eeaa2 Fix tests in tarball #543 2013-05-03 08:07:37 +03:00
Michael Snoyman
3956958b7a Better Show HandlerContents 2013-05-01 14:38:21 +03:00
Michael Snoyman
abd4cc5fc2 Export yesodRunner 2013-04-23 11:55:27 +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
a013eb2295 maximumContentLength is a Maybe 2013-04-18 10:19:50 +03:00
Michael Snoyman
64ef26104d Route attributes/appcache example #518 2013-04-11 17:07:22 +03:00
Michael Snoyman
307540fc04 GHC 7.6.2 2013-04-09 06:43:30 +03:00
Greg Weber
a357922d39 setHeader -> addHeader 2013-04-03 15:24:12 -07:00
Greg Weber
8429a66ad8 not authenticated returns 401, not 403 2013-04-03 07:47:32 -07:00
Michael Snoyman
e663e84caf Deprecate setHeader, provide addHeader #524 2013-04-03 17:28:44 +03:00
Greg Weber
18be9bc206 accept header content negotiation
* look at wildcards */* and main/*
* return a 406 when nothing matches the accept header
2013-04-02 08:39:56 -07:00
Greg Weber
be04f4888b fix yesod-core auth response type for json 2013-04-02 08:27:30 -07:00
Michael Snoyman
f2072747ce Include Yesod in server name 2013-04-02 14:58:02 +03:00
Felipe Lessa
993c557c12 Use clientsession 0.9.* on Yesod 1.2. 2013-04-01 11:45:16 -03:00
Michael Snoyman
6d98103115 Generalized sendChunk* functions 2013-03-27 09:46:10 +02:00
Michael Snoyman
d4422b656b LiteApp uses a Writer monad 2013-03-27 08:51:03 +02:00
Michael Snoyman
ae65603c4b Generalize streaming functions 2013-03-24 22:11:59 +02:00
Michael Snoyman
f3b459e9ce respond 2013-03-22 10:33:33 +02:00
Michael Snoyman
8ab09931c4 Code cleanup and transformer instances 2013-03-22 09:17:14 +02:00
Michael Snoyman
c16184eb40 Type-specialized versions of sendChunk 2013-03-21 11:42:20 +02:00
Michael Snoyman
968b96e0b1 sendChunk/sendFlush 2013-03-21 08:42:10 +02:00
Michael Snoyman
ff3eb746f1 Added some docs 2013-03-21 08:30:09 +02:00
Michael Snoyman
8c45b2709f respondSource 2013-03-20 13:49:43 +02:00
Michael Snoyman
68ca768b83 Export more aeson stuff 2013-03-20 11:57:00 +02:00
Michael Snoyman
fb4045ea45 Warning cleanup 2013-03-20 11:46:32 +02:00
Michael Snoyman
d35b8a0dc2 Require newest bugfix warp 2013-03-20 07:39:51 +02:00
Michael Snoyman
96d5f4bcf6 Remove unneeded test stuff from cabal file 2013-03-19 15:17:49 +02:00
Michael Snoyman
cf77d86a6a Use new mkParseRouteInstance in yesod-core 2013-03-19 15:17:28 +02:00
Michael Snoyman
564fdab66b SimpleApp to LiteApp 2013-03-18 12:18:49 +02:00
Michael Snoyman
0fc1c6cfef SimpleApp 2013-03-18 12:13:26 +02:00
Michael Snoyman
da24596b77 Incomplete SimpleApp 2013-03-18 05:12:04 +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
ffcbcb449e Added pong.hs 2013-03-17 12:48:11 +02:00
Michael Snoyman
3b121ccde5 More cleanups 2013-03-17 12:46:55 +02:00
Michael Snoyman
090191bec3 Include warp etc in Yesod.Core 2013-03-17 12:39:04 +02:00
Michael Snoyman
beac5d56db Minor TH cleanup 2013-03-17 12:08:58 +02:00
Michael Snoyman
4295346171 Split files up a bit more 2013-03-17 11:38:33 +02:00
Michael Snoyman
172f706924 Re-export some classes/methods 2013-03-17 11:28:57 +02:00
Michael Snoyman
a2c4f1f3b7 MonadHandler/MonadWidget 2013-03-17 10:10:39 +02:00
Michael Snoyman
8b9f8ea024 Some convenience re-exports 2013-03-15 05:54:09 +02:00
Michael Snoyman
cd2f0ed610 More useful defaultClientSessionBackend 2013-03-15 05:41:50 +02:00
Michael Snoyman
44a01d7107 Better fileSource 2013-03-14 19:02:20 +02:00
Michael Snoyman
326c13d8b4 House cleaning 2013-03-14 18:32:35 +02:00
Michael Snoyman
15bbd54e12 Some cleanup 2013-03-14 10:23:57 +02:00
Michael Snoyman
9c4cd573b4 Everything compiles 2013-03-14 09:28:51 +02:00
Michael Snoyman
3df45ac1c7 Another whitespace fix for tests 2013-03-14 07:38:24 +02:00
Michael Snoyman
55d13c62a6 whitespace fix for tests 2013-03-14 07:36:09 +02:00
Michael Snoyman
0f1637a1aa Implemented rawRequestBody 2013-03-14 07:35:09 +02:00
Michael Snoyman
8e793c70cc Compiles again, tests fails 2013-03-14 07:32:40 +02:00
Michael Snoyman
c466845095 More incomplete changes 2013-03-14 05:58:37 +02:00
Michael Snoyman
553dff7bd2 Incomplete change: GWidget/GHandler->WidgetT/HandlerT 2013-03-14 05:00:16 +02:00
Michael Snoyman
099b96f178 Everything compiles 2013-03-13 13:35:11 +02:00
Michael Snoyman
4bdd01ef58 Simplified GHandler/GWidget 2013-03-13 10:59:10 +02:00
Michael Snoyman
fc6551c650 defaultLayoutT 2013-03-13 10:15:47 +02:00
Michael Snoyman
5de675b45c Added missing test file 2013-03-13 09:17:40 +02:00
Michael Snoyman
0633d0b259 Beginning of subsite TH overhaul 2013-03-13 09:14:24 +02:00
Michael Snoyman
2aefef4414 YesodSubDispatch 2013-03-13 08:48:28 +02:00
Michael Snoyman
e928991410 Include a proper subsite test 2013-03-13 08:14:01 +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
0a54826157 Simplified SessionBackend 2013-03-12 16:29:48 +02:00
Michael Snoyman
cf3fe53cd4 Initial HandlerT 2013-03-12 16:14:29 +02:00
Michael Snoyman
a2d26e096d Move session header logic to yarToResponse 2013-03-12 10:41:17 +02:00
Michael Snoyman
77f41a18dd Removed localNoCurrent for error handling 2013-03-12 10:33:02 +02:00
Michael Snoyman
062efc9ae3 More code movement 2013-03-12 10:30:34 +02:00
Michael Snoyman
845258e544 Removed some dead code 2013-03-12 10:26:43 +02:00
Michael Snoyman
04a034770b Beginning of a dispatch overhaul 2013-03-12 10:21:26 +02:00
Michael Snoyman
9873b4d8f3 Moved code around some more 2013-03-12 05:49:24 +02:00
Michael Snoyman
db57468832 Version bumps 2013-03-11 12:07:10 +02:00
Michael Snoyman
e2cd292877 yesod-auth doesn't use redirects for JSON requests (fixes #479) 2013-03-11 11:37:45 +02:00
Michael Snoyman
8246aa4c1e Whole repo compiles 2013-03-11 11:25:26 +02:00
Michael Snoyman
2af304bd7f Provide JSON reps for default error message handler (fixes #478) 2013-03-11 11:10:00 +02:00
Michael Snoyman
f3f55a1ecd RepHtml is a synonym for Html 2013-03-11 10:54:26 +02:00
Michael Snoyman
1d0cac6e03 TypedContent 2013-03-11 10:45:01 +02:00
Michael Snoyman
d2f5ca449d selectRep/provideRep API 2013-03-11 09:08:34 +02:00
Michael Snoyman
81ec09bf63 Some more rearranging 2013-03-11 07:29:43 +02:00
Michael Snoyman
e673c1f35e Removed some subsite stuff 2013-03-11 07:23:30 +02:00
Michael Snoyman
2c2ee10dd7 Converted Yesod.Handler to typeclasses 2013-03-11 07:08:03 +02:00
Michael Snoyman
8f8e986839 Started on the Handler typeclasses 2013-03-11 06:00:50 +02:00
Michael Snoyman
8d5f207c8d Removed Yesod.Internal.TestApi 2013-03-10 15:21:54 +02:00
Michael Snoyman
5c4ddfad6c Removed Yesod.Internal 2013-03-10 15:18:58 +02:00
Michael Snoyman
9559c2a345 Typeable-based cache implementation (#268) 2013-03-10 15:05:40 +02:00
Michael Snoyman
1a5793e2b9 Removed Yesod.Request 2013-03-10 14:38:52 +02:00
Michael Snoyman
070e0aa8b3 Make RandomGen parameter optional 2013-03-10 14:34:00 +02:00
Michael Snoyman
5b5203a275 Removed yepnope 2013-03-10 14:20:39 +02:00
Michael Snoyman
0e2fee8da3 Removed messageLogger 2013-03-10 14:17:53 +02:00
Michael Snoyman
0c4643422c safeEh logs properly 2013-03-10 14:14:44 +02:00
Michael Snoyman
1b8a1b9d42 Removed unneeded conditional 2013-03-10 14:04:45 +02:00
Michael Snoyman
ee01aaf268 Better error handling and auth checking 2013-03-10 14:03:10 +02:00
Michael Snoyman
dc79ddecd9 Auth tests 2013-03-10 13:48:26 +02:00
Michael Snoyman
7e2338aaa1 Unified some datatypes 2013-03-10 13:33:52 +02:00
Michael Snoyman
4ece5fafd9 Removed handlerToYAR 2013-03-10 13:24:23 +02:00
Michael Snoyman
e4683ed001 .Class and .Run modules 2013-03-10 12:56:32 +02:00