Michael Snoyman
6ad81f6d15
Merge remote-tracking branch 'origin/master' into better-monads
2018-02-02 00:17:37 +02:00
Michael Snoyman
fa8e1ac00f
Switch to SubHandlerFor
...
This is much more consistent than suddenly using a ReaderT for subsites.
Thanks to @jprider63 for the inspiration for this, I think it cleans
things up a lot!
2018-01-24 13:01:26 +02:00
Maximilian Tagher
6b22a0b9be
Give more detail in the error message for too large request bodies.
...
* Just to be helpful to developers, give the maximum body length and their body length
* Also point developers to the function to change that value
(I don't think this leaks any sensitive info, because you can always binary search with different request body sizes to find the maximum allowable)
2018-01-18 18:30:34 -08:00
Michael Snoyman
6830a9840c
Merge branch 'better-monads' into no-transformers
2018-01-17 06:43:52 +02:00
Michael Snoyman
ad35ef9431
Deal with another sneaky exception
2018-01-16 16:10:23 +02:00
Michael Snoyman
fbccfe2306
Merge branch 'better-monads' into no-transformers
2018-01-11 22:49:02 +02:00
Michael Snoyman
103c098cf8
Catch up with Data.Conduit.Combinators
2018-01-10 12:16:31 -08:00
Michael Snoyman
47ee7384ea
Be gone with ye HandlerT!
2017-12-13 09:53:14 +02:00
Artem Chuprina
83299bf1be
urlParamRenderOverride method for Yesod class
...
this method replaces urlRenderOverride because the latter lacks support for query string
2016-08-09 22:54:24 +03:00
Mikkel Christiansen
50c4138a5c
Take hlint suggestions.
2016-06-28 08:28:23 +02:00
Michael Snoyman
1036550d00
Add missing Monoid import
2016-06-23 08:15:53 +03:00
Michael Snoyman
90ecc1ebe3
Significant cleanup of runHandler
...
@nh2 This hopefully makes the logic much clearer to avoid exceptional
cases slipping through.
@gregwebs Maybe you'd like to review this?
For yesod-core 1.5: we should make as many datatypes strict-fielded as
possible in Yesod.Core.Types to make for less corner cases. Also, the
idea of an exception value itself being partial is _really_ terrifying.
2016-06-22 20:28:42 +03:00
Michael Snoyman
33ea980dba
Simplify away from returnDeepSessionMap
2016-06-22 18:45:46 +03:00
Michael Snoyman
a3d9a13abe
Proper handling of impure exceptions within HandlerError values
2016-06-22 18:24:18 +03:00
David Turner
5b4d5ced3b
Move auto-updater into YesodRunnerEnv
2015-10-10 15:58:39 +00:00
Mikkel Christiansen
25bbda2087
Remove unused applicative.
2015-08-26 16:10:56 +02:00
Mikkel Christiansen
a47ceec445
GHC 7.10 import warnings removed from yesod-core.
2015-08-26 14:52:39 +02:00
Andrew Martin
b88295cf05
stop the module import cycle
2015-06-05 13:20:03 -04:00
Greg Weber
05f2a7631c
add Yesod.Core.Unsafe module
2014-11-29 17:45:56 -08:00
Michael Snoyman
846033b176
Fix some haddocks
2014-11-23 18:54:50 +02:00
Michael Snoyman
f8b9a702b8
Add missing import
2014-11-23 12:13:25 +02:00
Michael Snoyman
0af76fa97b
Only update expires time once per hour
2014-11-23 12:10:22 +02:00
David Turner
42f098ff64
neverExpires sets 'Expires' header to be a year from now.
2014-11-21 17:40:32 +00:00
Michael Snoyman
972e117005
More efficient token generation
...
Old code would create a new System.Random generator each time, which
requires going to the system entropy store. New code caches an
mwc-random gen at startup.
2014-10-20 10:34:38 +03:00
Michael Snoyman
3b310a7103
yesodWithInternalState
2014-10-07 07:42:02 +03:00
Michael Snoyman
e21bfb4d94
GHC 7.4 fixes
2014-09-30 13:45:39 +03:00
Michael Snoyman
3447510080
Clean up a bunch of warnings
2014-09-29 08:08:02 +03:00
Greg Weber
00b5781ec5
add cachedBy, like cached but adds a key
...
re-factored to a base implementation with
no Yesod dependencies in TypeCache.hs
2014-09-20 14:34:10 -07:00
Michael Snoyman
ccab062f2d
Remove all conditional compilation for Yesod 1.4 release
...
Left in for GHC-bundled libraries (ghc, base, bytestring, binary)
2014-09-07 18:17:45 +03:00
Michael Snoyman
f92cdd5c41
sendWaiApplication
2014-06-15 15:48:57 +03:00
Michael Snoyman
1f704e914d
Fixes for WAI 2.1
2014-06-10 13:59:35 +03:00
Michael Snoyman
71263ae047
Initial WAI 3.0 support, one test still failing
2014-05-22 20:17:29 +03:00
Michael Snoyman
dfd7965b6b
Workarounds for older bytestrings
2014-04-16 14:31:54 +03:00
Michael Snoyman
b67d225f56
Use mplus (thanks @meteficha)
2014-04-10 20:30:14 +03:00
Michael Snoyman
4dc7a1258c
Deeply evaluate session and headers #712
2014-04-10 20:21:49 +03:00
Michael Snoyman
86b7f5ea43
Test case and fix for notCaught3 in #658
2014-01-27 17:20:02 +02:00
Michael Snoyman
c670c54ba4
fast-logger 2.0
2013-12-03 11:55:39 +02:00
Michael Snoyman
d34c3f26dc
WAI 2.0 updates
2013-11-10 16:49:26 +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
d5b66d35d5
Allow overriding status code in error handlers
2013-08-04 08:55:42 +03:00
Michael Snoyman
a013eb2295
maximumContentLength is a Maybe
2013-04-18 10:19:50 +03:00
Michael Snoyman
15bbd54e12
Some cleanup
2013-03-14 10:23:57 +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
4bdd01ef58
Simplified GHandler/GWidget
2013-03-13 10:59:10 +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
0a54826157
Simplified SessionBackend
2013-03-12 16:29:48 +02:00