Commit Graph

734 Commits

Author SHA1 Message Date
Greg Weber
4b8cb247ce add forkHandler. closes #680
Also fix import warnings in Handler
2014-03-11 18:33:45 -07:00
Greg Weber
5c3078b51e parseJsonBody_ deprecated for requireJsonBody 2014-03-11 18:07:46 -07:00
Greg Weber
8535f19583 use fewer imports 2014-03-11 17:14:24 -07:00
Michael Snoyman
56e42936b0 sendRawResponse 2014-03-06 16:34:27 +02:00
Greg Weber
a62157097c parseJsonBody_ -> requireJsonBody. closes #678 2014-03-04 10:06:56 -08: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
f4bbe1cc52 Set content-length whenever evaluating a response body 2014-03-02 14:30:46 +02:00
Michael Snoyman
b32be57fe8 Added widgets benchmark 2014-02-24 19:02:04 +02:00
Michael Snoyman
9386be5f97 Version bump 2014-02-05 17:36:53 +02:00
Michael Snoyman
9ec14e7f53 Log exceptions from Warp 2014-02-05 09:48:33 +02:00
Michael Snoyman
e7bddafcbb Merge pull request #662 from yesodweb/never-expires-cache-control
add cache-control to neverExpires
2014-02-03 20:30:31 -08:00
Greg Weber
f20c236d50 add cache-control to neverExpires 2014-02-03 16:33:29 -08:00
Michael Snoyman
c0e366bd72 Version bump 2014-01-27 17:25:06 +02:00
Michael Snoyman
5ee5301ce8 Added test cases for #658 notCaught 4 and 5 2014-01-27 17:24:50 +02:00
Michael Snoyman
86b7f5ea43 Test case and fix for notCaught3 in #658 2014-01-27 17:20:02 +02:00
Michael Snoyman
807ff497f9 aeson 0.7 support 2014-01-15 19:12:57 +02:00
Michael Snoyman
45eadd3e09 fast-logger 2.1 support 2013-12-26 13:53:39 +02:00
Michael Snoyman
b018c5d7aa Allow persistent 1.3 2013-12-26 12:13:10 +02:00
Greg Weber
20efbebe4e test cases for multiple method routes 2013-12-22 17:10:17 -08:00
Michael Snoyman
d4998d2246 Temp file upload changes in wai-extra 2.0.1 #630 2013-12-13 06:45:40 +02:00
Michael Snoyman
853e7ad7b5 Remove text upper bounds 2013-12-04 15:01:07 +02:00
Michael Snoyman
02ab5320e3 Version bumps 2013-12-04 07:01:20 +02:00
Michael Snoyman
4fe36c848e Bump resourcet dep 2013-12-04 06:09:28 +02:00
Michael Snoyman
cf0fad20bc Merge branch 'master' of github.com:yesodweb/yesod 2013-12-03 12:34:55 +02:00
Michael Snoyman
cca38cfe03 Expand prefix on generated identifiers #625 2013-12-03 12:01:11 +02:00
Michael Snoyman
f85b38e817 Fix tests: force HTTP/1.1 in a few places 2013-12-03 11:57:56 +02:00
Michael Snoyman
c670c54ba4 fast-logger 2.0 2013-12-03 11:55:39 +02:00
Michael Snoyman
b18e43c050 Incomplete fast-logger 2.0 changes 2013-12-02 19:40:03 +02:00
Michael Snoyman
3330e89e10 Merge remote-tracking branch 'origin/master' into wai-2.0 2013-11-12 19:40:51 +02:00
Michael Snoyman
11b49dfe9e Merge remote-tracking branch 'origin/master' into HEAD 2013-11-12 19:29:34 +02:00
Michael Snoyman
dce5ea942e Fix a faulty rewrite rule 2013-11-12 19:29:18 +02:00
Michael Snoyman
d34c3f26dc WAI 2.0 updates 2013-11-10 16:49:26 +02:00
Michael Snoyman
6f495fc758 Merge branch 'master' into wai-2.0
Conflicts:
	yesod-static/yesod-static.cabal
2013-11-10 13:46:58 +02:00
Michael Snoyman
294641c404 Version bumps 2013-11-10 07:48:01 +02:00
Michael Snoyman
f04c4c456c Add an extensions line for TH 2013-10-15 10:30:05 +03:00
Michael Snoyman
a94566e22e Version bump 2013-10-13 13:06:41 +03:00
Michael Snoyman
3a9fa33b7e Export a TH-used identifier #609 2013-10-13 12:11:15 +03:00
Michael Snoyman
8fb2d180d5 cereal 0.4 fpco/stackage#121 2013-10-01 15:42:46 +03:00
Michael Snoyman
c876974656 version bumps 2013-09-10 20:43:42 +03:00
Michael Snoyman
5b379067b2 Add warning about calling parseJsonBody twice 2013-09-08 16:52:56 +02:00
Michael Snoyman
8ae0b789e1 Merge branch 'master' into wai-2.0 2013-09-08 14:25:10 +02:00
Michael Snoyman
db17c0ade1 shakespeare 1.2/version bumps 2013-09-08 13:48:24 +02:00
Michael Snoyman
94f42659ea Merge branch 'master' into wai-2.0 2013-09-08 13:23:09 +02:00
Michael Snoyman
e29cd12ff8 Version bumps 2013-09-08 10:46:37 +02:00
Michael Snoyman
366127527a Fix some CPP 2013-08-19 13:20:44 +03:00
Michael Snoyman
2d0f560bea wai 2.0 2013-08-19 12:51:54 +03:00
Michael Snoyman
aa5781d4e4 shouldLogIO 2013-08-07 07:22:28 +03:00
Michael Snoyman
d5b66d35d5 Allow overriding status code in error handlers 2013-08-04 08:55:42 +03:00
Michael Snoyman
aae3c7a4fb Version bumps 2013-06-24 13:57:07 +03:00
Jonathan Fischoff
28e7bc26b8 Adding a ToTypedContent constraint to yesodMiddleware for response logging, etc. 2013-06-17 14:24:50 -07:00
Michael Snoyman
8e5c419dd5 Move some Yesod exports to Yesod.Core 2013-06-06 10:05:22 +03:00
Michael Snoyman
772563c46b lookupHeader/lookupHeaders 2013-05-30 08:31:24 +03:00
Michael Snoyman
743966898d Move away from RepHtml some more 2013-05-20 09:16:53 +03:00
Michael Snoyman
44c5b03a6e Deprecate hamletToRepHtml 2013-05-19 19:33:48 +03:00
Michael Snoyman
89203d0630 returnJson and provideJson 2013-05-09 08:39:06 +03:00
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
Michael Snoyman
1bd193f642 Initial YesodRequest/YesodRespnse change 2013-03-10 11:58:29 +02:00
Michael Snoyman
4f1a6b461e BackendSession => SessionMap 2013-03-10 11:13:19 +02:00
Michael Snoyman
98613278d4 Yesod.Core.Types created, but it's a mess 2013-03-10 11:02:53 +02:00
Michael Snoyman
20091656aa Make Felipe's session code the default (#415) 2013-03-10 10:08:20 +02:00
Michael Snoyman
2377d70ec8 Merge branch 'master' into yesod1.2
Conflicts:
	yesod-json/yesod-json.cabal
2013-03-10 09:49:28 +02:00
Michael Snoyman
afd700753c Use RequestBodyLength 2013-03-10 05:26:34 +02:00
Michael Snoyman
eda98f96db Merge remote-tracking branch 'origin/master' into yesod1.2
Conflicts:
	yesod-core/yesod-core.cabal
	yesod-json/yesod-json.cabal
2013-03-10 05:10:13 +02:00
Michael Snoyman
459e5c29bf blaze-html 0.6 2013-02-18 18:15:05 +02:00
Michael Snoyman
a73cac167e wai 1.4 2013-02-18 12:39:20 +02:00
Michael Snoyman
551b9d7c1e Version bumps 2013-02-18 07:02:08 +02:00
Michael Snoyman
a1734e0e18 conduit 1.0 support 2013-02-13 11:45:50 +02:00
Michael Snoyman
8eb898931a Merge branch 'master' into yesod1.2 2013-02-12 16:59:40 +02:00
Michael Snoyman
23ee947ba1 IsContent instance for ResumableSource #466 2013-02-12 15:49:59 +02:00
Michael Snoyman
ed53b20308 Merge yesod-json functionality into yesod-core (closes #487) 2013-02-12 15:42:45 +02:00
Michael Snoyman
d167842839 Version bumps, http-types 0.8 2013-01-29 10:33:14 +02:00
Michael Snoyman
3786362300 Add Failure instance for GHandler 2013-01-27 19:04:18 +02:00
Felipe Lessa
9829e949c2 yesod-core: Bump version to 1.1.7.2. 2013-01-25 14:05:35 -02:00
Felipe Lessa
991f937b39 Use resolveApproot on runFakeHandler. 2013-01-25 13:55:41 -02:00
Michael Snoyman
f78559d7ed Remove deprecated Yesod.Widget functions (fixes #469) 2013-01-15 11:23:21 +02:00
Michael Snoyman
91f98c480e Removed instance Exception ErrorResponse 2013-01-15 11:12:25 +02:00
Michael Snoyman
617c1d724e Removed some FIXMEs 2013-01-02 14:26:56 +02:00
Michael Snoyman
cb2491de04 Version bump 2013-01-01 11:18:27 +02:00
Michael Snoyman
bd05541df4 Limit request body sizes for chunked bodies 2013-01-01 11:18:07 +02:00
Michael Snoyman
bf293e6a1f Make new session code optional, keep old API 2012-12-26 19:00:45 +02:00
Michael Snoyman
f4674f9465 Merge branch 'faster-session' of https://github.com/meteficha/yesod 2012-12-26 18:19:22 +02:00
Michael Snoyman
9624d4bf66 Add error logging for all internal server errors (#335) 2012-12-26 16:41:24 +02:00
Michael Snoyman
054340ec10 Version bumps 2012-11-28 09:47:01 +02:00
Michael Snoyman
0c4ded0fd1 Slightly more efficient header construction 2012-11-25 21:45:08 +02:00
David L. L. Thomas
513d6ed4f9 Bugfix - Caching redirect *only* for 301 redirects
Previous commit got it backwards.
2012-11-25 11:12:39 -08:00
David L. L. Thomas
246a024dce Allowing cache on 301 redirects 2012-11-23 13:44:31 -08:00
David L. L. Thomas
a2ad8fe704 Prevent caching of redirect
Dynamic redirects shouldn't be cached.  This especially causes a problem
with redirection to the login page, since trying to actually access the
page the user logged in to see can get them redirected back to the login
page on some browsers.

This patch adds headers to prevent caching of all redirects, which isn't
ideal, but better than allowing caching of all of them.
2012-11-21 22:39:53 -08:00
Michael Snoyman
d37b0634a5 Added yesodMiddleware method 2012-11-21 10:58:45 +02:00
Michael Snoyman
053210da6f shakespeare-js 1.0.2 and 1.1 2012-11-16 09:27:31 +02:00
Michael Snoyman
e43bc22c39 Version bumps 2012-11-13 09:52:21 +02:00
Michael Snoyman
a598846bd3 Better formatting of error messages 2012-11-12 11:24:32 +02:00
Michael Snoyman
21090b9314 Version bumps 2012-11-11 10:08:37 +02:00
Michael Snoyman
d40da67656 Remove hspec upper bound 2012-11-09 09:12:32 +02:00
Michael Snoyman
ae8168ede5 Added extra explanation from Felipe 2012-11-07 14:49:11 +02:00
Michael Snoyman
a144b56928 Warning about fork vs resourceForkIO 2012-11-07 14:35:31 +02:00
Michael Snoyman
ed5e65ae95 Merge branch 'master' of https://github.com/piyush-kurur/yesod 2012-11-07 14:05:18 +02:00
Piyush P Kurur
e32f37eadd refactored mkYesodGeneral to use mkDispatchInstance 2012-11-07 16:51:25 +05:30
Michael Snoyman
1c7e4c6f1a Version bumps 2012-11-07 12:07:32 +02:00
Piyush P Kurur
30ddc17384 yesod-core: generic dispatch instance generation fixes #427 partially. 2012-10-26 15:23:54 +05:30
Simon Hengel
dfae661878 Adept Hspec tests for forward compatibility
* Don't use hspecX, it's deprecated.

 * Do not import Test.Hspec.HUnit.  It's no longer necessary and may be
   removed in the future.
2012-10-16 14:44:58 +02:00
Michael Snoyman
4a6bdc0db7 Version bumps 2012-10-15 08:58:01 +02:00
Michael Snoyman
ae23dee4ab Include level in source 2012-10-13 22:40:03 +02:00
Michael Snoyman
01b855969b CssBuilder 2012-10-11 07:35:25 +02:00
Michael Snoyman
57b8748a3d lifted-base 0.2 2012-10-11 06:41:14 +02:00
Michael Snoyman
45e54ff2bb vector 0.10 2012-10-04 16:44:13 +02:00
Michael Snoyman
e28f330711 path-pieces dependency bump 2012-09-29 22:29:17 +02:00
Michael Snoyman
a30cc74087 Export log*S (#405) 2012-09-23 13:44:04 +02:00
Michael Snoyman
34f2942c54 Add deprecation for messageLogger (#405) 2012-09-21 17:15:21 +03:00
Michael Snoyman
7bd06e9b7b LogSource (#405) 2012-09-21 15:01:07 +03:00
Michael Snoyman
cf4fed8cb9 Precede null path segments with dashes (#421) 2012-09-21 14:23:38 +03:00
Michael Snoyman
a6ce05609d Version bumps 2012-09-11 07:17:23 +03:00
Felipe Lessa
b2a9beba3c Use a cache for session cookie's expiration time.
The following HelloWorld app was used as benchmark:

  data HelloWorld = HelloWorld
  mkYesod "HelloWorld" [parseRoutes|
    / HomeR GET
  |]

  instance Yesod HelloWorld where
    -- makeSessionBackend = const $ return Nothing

  getHomeR = return . RepPlain . toContent $ "Hello World!"

  main :: IO ()
  main = warp 8080 HelloWorld

The benchmark was tested with httperf under the following
environments:

  [vanilla-nosession] Released yesod-core 1.1.1.1, but without sessions.

  [vanilla-session] Released yesod-core 1.1.1.1 (with sessions).

  [faster-session-1] With patch 065e33a, "Faster, leaner
  implementation of putTime/getTime".

  [faster-session-2] With this commit.

Performance results:

  A) Testing with:
       httperf --hog --client=0/1 --server=localhost \
               --port=8080 --uri=/ --rate=1000 \
               --send-buffer=4096 --recv-buffer=16384 \
               --num-conns=100 --wsess=1000,60,1 \
               --burst-length=20 --session-cookie

     Results:
       vanilla-nosession: 19187.7 req/s (0.1 ms/req)
       vanilla-session:    2523.3 req/s (0.4 ms/req)
       faster-session-1:   2933.5 req/s (0.3 ms/req)
       faster-session-2:   2957.5 req/s (0.3 ms/req)

     This test benchmarks both saving and loading the session.
     Interestingly, this commit provides only a small performance
     increase.

  B) Testing with:
       httperf --hog --client=0/1 --server=localhost \
               --port=8080 --uri=/ --rate=1000 \
               --send-buffer=4096 --recv-buffer=16384 \
               --num-conns=100 --num-calls=1000 \
               --burst-length=20

     Results:
       vanilla-nosession: 43548.7 req/s (0.0 ms/req)
       vanilla-session:    3609.4 req/s (0.3 ms/req)
       faster-session-1:   3454.9 req/s (0.3 ms/req)
       faster-session-2:   3786.9 req/s (0.3 ms/req)

     This test benchmarks only saving the session.  Strangely,
     faster-session-1 was worse than vanilla-session (while
     isolated tests show that the new putTime should be +70x
     faster).  However, there is a non-negligible performance
     increase on faster-session-2.
2012-09-05 01:35:10 -03:00
Felipe Lessa
065e33a3d1 Faster, leaner implementation of putTime/getTime.
Benchmark on my computer (per call, includes runPut/runGet):

    old putTime: 5658 ns +/- 224ns
    new putTime:  821 ns +/-  24ns (7x faster)

    old getTime: 7228 ns +/- 126ns
    new getTime:   99 ns +/-   4ns (73x faster!!)

Besides, the old format used 25 raw bytes (33.3 bytes on the
base64 output), while the new one uses 8 bytes (10.6 bytes on the
base64 output).
2012-09-05 00:41:54 -03:00
Felipe Lessa
865281d241 yesod-core: Bump version to 1.1.1.1.
Where do I redeem my prize?
2012-08-27 14:50:11 -03:00
Felipe Lessa
0d95e6917d yesod-core: Whitespace. 2012-08-27 14:50:04 -03:00
Felipe Lessa
5b19865c7a yesod-core: In handlerToIO, really avoid keeping old handler data in memory. 2012-08-27 10:20:17 -03:00
Felipe Lessa
20f51e38e2 yesod-core: Doc improvements for runFakeHandler. 2012-08-21 13:38:49 -03:00
Felipe Lessa
0346dab14c yesod-core: New function runFakeHandler. 2012-08-21 13:38:42 -03:00
Felipe Lessa
dc14783c81 yesod-core: On handlerToIO, avoid 'sourceList []'. 2012-08-20 13:13:46 -03:00
Felipe Lessa
786b5bc6e2 yesod-core: On handlerToIO's docs, avoid shadowing a name. 2012-08-20 13:09:43 -03:00
Felipe Lessa
60046bad96 yesod-core: New handlerToIO function. 2012-08-20 13:07:58 -03:00
Michael Snoyman
2e87e13347 Filter missing files (#403) 2012-08-12 17:36:26 +03:00
Michael Snoyman
df5018a94c hspec 1.3 2012-08-03 15:40:36 +03:00
Michael Snoyman
da33be529d Deprecated addWidget 2012-08-03 07:38:21 +03:00
Michael Snoyman
b0c6651ac6 Strictness annotations on Content 2012-07-25 08:56:46 +03:00
Michael Snoyman
c009067b11 DontFullyEvaluate (Felipe's code) 2012-07-25 08:54:43 +03:00
Michael Snoyman
f91ff4fde2 fullyEvaluateBody 2012-07-24 17:49:17 +03:00
Michael Snoyman
33c39662b9 Reflect wai changes for #262 2012-07-11 15:58:36 +03:00
Michael Snoyman
fffb3028c9 Export FileUpload (#262) 2012-07-09 15:11:24 +03:00
Michael Snoyman
288f3b36eb fast-logger/monad-logger 0.2 2012-07-09 14:14:45 +03:00
Michael Snoyman
f3a3408260 http-types 0.7 2012-07-06 16:24:24 +03:00
Michael Snoyman
29c242d03b monad-logger 2012-07-05 16:14:23 +03:00
Michael Snoyman
ddd1059983 Updated fast-logger/wai-logger 2012-07-05 11:04:04 +03:00
Michael Snoyman
9fdb8c9d2d Field names for GWData 2012-07-04 17:53:47 +03:00
Michael Snoyman
7c4d6b5e47 Javascript in Head (#380) 2012-07-04 17:53:24 +03:00
Michael Snoyman
d38e9a8c0a FileUploadSource (#262) 2012-07-02 11:21:02 +03:00
Michael Snoyman
7efbab8846 Explicit exports for FileInfo fields 2012-07-02 11:20:17 +03:00
Michael Snoyman
8fac4917b5 FileUpload (#358) 2012-07-02 11:15:02 +03:00
Michael Snoyman
e8fb512107 Allow sitewide hamlet changes (#377) 2012-07-02 09:37:56 +03:00
Michael Snoyman
3ecbf43f5d $newline 2012-07-01 20:59:37 +03:00
Michael Snoyman
d465d30863 Remove some blaze conditionals 2012-06-26 22:54:12 +03:00
Michael Snoyman
4a6e027d29 maximumContentLength is Word64 (#365) 2012-06-26 22:52:56 +03:00
Michael Snoyman
014732dac8 hspec 1.2 2012-06-26 10:56:50 +03:00
Michael Snoyman
ebc737a5cb conduit 0.5 2012-06-22 15:28:14 +03:00
Michael Snoyman
61b5627e44 Version bumps 2012-05-14 12:33:44 +03:00
Michael Snoyman
d0a7447f56 Remove containers upper bounds 2012-05-09 10:25:19 +03:00
Michael Snoyman
468b013860 Turn on blaze-html 0.5 by default 2012-05-09 09:50:37 +03:00
Simon Hengel
653ffd02fb yesod-core: Adapt tests for hspec-1.1
This is not strictly necessary, the `UnevaluatedSpec` is merely
deprecated.  But it is a good idea anyway.
2012-05-07 07:43:28 +02:00
Mark Wright
9f4c92f181 yesod-core changes for hspec 1.0 2012-05-06 12:18:49 +10:00
Michael Snoyman
e18c678aed Remove upper bounds on bytestring (yesodweb/shakespeare#60) 2012-04-29 09:38:45 +03:00
Michael Snoyman
20015aa6ee Update license with MIT license 2012-04-29 09:38:45 +03:00
Michael Snoyman
12f530a1e7 Remove ghc7 flag (#322) 2012-04-25 17:20:38 +03:00
Felipe Lessa
68001ed057 Fix a fixme comment. 2012-04-24 09:55:47 -03:00
Michael Snoyman
4bb2c33bfe yesod-core for blaze-html 0.5 2012-04-23 11:12:02 +03:00
Michael Snoyman
a4920c46ca Version bumps 2012-04-19 07:57:43 +03:00
Mark Wright
f7b0f6ce12 Include missing test files and sort the list of test files 2012-04-16 21:10:52 +10:00
Michael Snoyman
74a826fbb4 clearSession 2012-04-10 18:56:30 +03:00
gregwebs
ba4cd002e1 documentation cleanup 2012-04-09 05:54:53 -07:00
Anton
09c461dd89 add additional documentation for language function 2012-04-09 14:02:09 +06:00
Michael Snoyman
285c3497f4 Version bump 2012-04-09 10:16:06 +03:00
Michael Snoyman
4ac413e419 Configurable session name 2012-04-07 23:01:29 +03:00
Michael Snoyman
f8c41eb5ac Doc fix 2012-04-05 22:39:39 +03:00
Michael Snoyman
43d938bbe7 Switch from BSD3 to MIT 2012-04-03 10:45:51 +03:00
Michael Snoyman
742ffa4d14 Automatically apply toWidget to ^{} interpolations 2012-04-03 08:07:57 +03:00
Michael Snoyman
fc29c153ed Removed dates from version numbers 2012-04-03 07:57:43 +03:00
Luite Stegeman
396644081c make SessionBackend more flexible 2012-03-31 01:36:44 +02:00
Michael Snoyman
37ad3c045b Merge remote-tracking branch 'origin/master'
Conflicts:
	yesod-test/yesod-test.cabal
2012-03-29 07:47:38 +02:00
Michael Snoyman
25ec577449 transformers 0.3 2012-03-28 16:23:00 +02:00
Michael Snoyman
4cc933b21a conduit 0.4 2012-03-28 07:19:58 +02:00
gregwebs
3f0848121c Session -> BackendSession 2012-03-25 13:31:02 -07:00
gregwebs
f147e76231 Revert "Session and Headers exportet"
This reverts commit f58a695c84.
2012-03-25 13:31:02 -07:00
gregwebs
3bb3db16b1 Revert "fix Session export"
This reverts commit 03634a13b8.
2012-03-25 13:31:02 -07:00
gregwebs
47b89724e8 Revert "fix tests: import Yesod.Core hiding (Session)"
This reverts commit f548a4c566.
2012-03-25 13:31:02 -07:00
gregwebs
469d58cf6d Revert "another Session hide"
This reverts commit 589ab4a547.
2012-03-25 13:31:02 -07:00
gregwebs
2baeddd698 fix doctype 5 2012-03-25 08:21:21 -07:00
gregwebs
589ab4a547 another Session hide 2012-03-25 08:13:03 -07:00
gregwebs
f548a4c566 fix tests: import Yesod.Core hiding (Session) 2012-03-25 08:08:19 -07:00
gregwebs
b1bc42a8bd use doctype 5 instead of !!! 2012-03-25 07:49:35 -07:00
gregwebs
03634a13b8 fix Session export 2012-03-25 07:49:35 -07:00
Tom Streller
f58a695c84 Session and Headers exportet 2012-03-25 13:30:56 +02:00
Michael Snoyman
d7b515cd5b Fix an extra close angle bracket 2012-03-23 17:34:26 +02:00
Michael Snoyman
1f1c6ca9d4 Fixes 2012-03-23 16:02:50 +02:00
Felipe Lessa
9cd7a0ba14 Add cookieDomain to Yesod type class. 2012-03-21 14:36:46 -03:00
Felipe Lessa
1216c472c7 Remove trailing whitespace. 2012-03-21 14:36:30 -03:00
Michael Snoyman
ca49415938 Added missing test file 2012-03-20 17:30:18 +02:00
Michael Snoyman
22cd28b8f4 shakespeare 1.0 bump 2012-03-20 17:30:06 +02:00
Michael Snoyman
b0b755cd80 Merge remote-tracking branch 'origin/master'
Conflicts:
	yesod/scaffold/Handler/Home.hs.cg
	yesod/scaffold/config/routes.cg
	yesod/scaffold/project.cabal.cg
	yesod/yesod.cabal
2012-03-20 17:01:06 +02:00
Michael Snoyman
0618c5f6a5 WaiSubsite 2012-03-20 15:23:27 +02:00
Nubis
a72a62827b Fixed dependencies 2012-03-16 23:21:45 -07:00
Michael Snoyman
ec62f6f68c nonce -> token (#214) 2012-03-16 06:39:30 +02:00
Michael Snoyman
e0fda35a55 Removed deprecated methods from Yesod typeclass 2012-03-13 21:46:06 +02:00
Michael Snoyman
ee81979430 Merge remote-tracking branch 'origin/master' into beta 2012-03-13 15:14:49 +02:00
Michael Snoyman
e62e4b8721 Finished deprecating old Widget functions 2012-03-13 13:11:05 +02:00
Luite Stegeman
3775552d87 improve nonce key code as per @gregwebs' suggestion 2012-03-13 11:19:16 +01:00
Luite Stegeman
00b9acd98d merge master branch 2012-03-13 11:02:33 +01:00
Michael Snoyman
4cc468ca3b Beginning of old widget function deprecation, not complete 2012-03-13 06:36:27 +02:00
Michael Snoyman
cbd0719f37 conduit 0.3 2012-03-12 13:40:04 +02:00
Greg Weber
096a84cec1 version bumps for new shakespeare 2012-03-11 23:12:24 -07:00
Greg Weber
6394483c31 allow newer version of shakespeare(-text) 2012-03-11 12:13:33 -07:00
Greg Weber
3d59a32ef3 bump wai-extra 2012-02-29 13:13:06 -08:00