Jappie Klooster
13db3db118
Add backwards compatibility for old unliftio
2022-07-20 14:14:14 +02:00
Jappie Klooster
d04c22e3d6
Rewrite default behavior into rethrow async exceptions
2022-07-20 11:55:44 +02:00
Jappie Klooster
964fa0db55
Fix dealing with timeout and add appropriate test
...
add comments for this nonobvious test
2022-07-14 21:55:00 +02:00
Jappie Klooster
27042c93ce
change catchbehavior to get app be in io, make it abstract type
2022-07-07 12:06:56 +02:00
Jappie Klooster
1487b121be
Make catching exceptions configurable.
...
Fixes https://github.com/yesodweb/yesod/issues/1771
This is done by adding a function to Yesod
typeclass which can match on any exception
and tell the framework if it should rethrow
or not.
I used an overridable function because it seemed
more flexible then a whitelist.
A user can now for example choose to throw
everything, or catch everything as easily.
add docs
bump
2022-07-06 22:40:24 +02:00
Jappie Klooster
73f20b6285
Remove sometimes failing test
...
This test sometimes fails on nix builds.
I'm not sure why, but it should be superflous with
"thread killed = 500" test anyway.
They test both for async exceptions.
Just a different one.
2022-03-25 07:30:33 -04:00
Michael Snoyman
3d65a3bf16
Remove NumericUnderscores for older GHCs
2022-03-24 10:29:28 +02:00
Jappie Klooster
5b96d94915
Fix it for async exceptions in the sessions as well
2022-03-22 15:45:20 -04:00
Jappie Klooster
4c1719cb6e
Disable the allocation limit within the test instead
...
I don't think we should add that to the function
seems odly specific
2022-03-22 15:15:49 -04:00
Jappie Klooster
08d37a1857
Add test showing the failures
2022-03-22 14:02:25 -04:00
Steven Leiva
266c436f18
selectRep chooses first rep if no matches found.
...
The `selectRep` documentation indicates that it choose the first
representation provided if no representation matches.
This was only partially correct, as `selectRep` required that no
representation matched **and** that the `Content-Type` header of the
response was empty.
This led to a problem because `defaultErrorhandler` relies on
`selectRep`, and when `selectRep` was unable to find a suitable
representation, it would "swallow" the original error that resulted in
`defaultErrorhandler` being called, and set a status 406 for all cases.
2018-07-19 21:32:02 -05:00
Michael Snoyman
103c098cf8
Catch up with Data.Conduit.Combinators
2018-01-10 12:16:31 -08:00
Michael Snoyman
a16e75249a
More moving over to unliftio
2017-12-31 09:20:02 +02:00
Michael Snoyman
3dc2d10b30
Compile with -Wall -Werror
2017-02-05 12:09:18 +02:00
Mikkel Christiansen
50c4138a5c
Take hlint suggestions.
2016-06-28 08:28:23 +02:00
Michael Snoyman
6eb1447dd9
Add missing LANGUAGE pragma
2014-08-27 08:15:47 +03:00
Michael Snoyman
71263ae047
Initial WAI 3.0 support, one test still failing
2014-05-22 20:17:29 +03:00
Michael Snoyman
c44a48c8ae
Test cases for #712
2014-04-10 19:59:54 +03:00
Michael Snoyman
f4bbe1cc52
Set content-length whenever evaluating a response body
2014-03-02 14:30:46 +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
d5b66d35d5
Allow overriding status code in error handlers
2013-08-04 08:55:42 +03:00
Michael Snoyman
743966898d
Move away from RepHtml some more
2013-05-20 09:16:53 +03:00
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
df5018a94c
hspec 1.3
2012-08-03 15:40:36 +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
ddd1059983
Updated fast-logger/wai-logger
2012-07-05 11:04:04 +03:00
Michael Snoyman
8fac4917b5
FileUpload ( #358 )
2012-07-02 11:15:02 +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
gregwebs
47b89724e8
Revert "fix tests: import Yesod.Core hiding (Session)"
...
This reverts commit f548a4c566 .
2012-03-25 13:31:02 -07:00
gregwebs
2baeddd698
fix doctype 5
2012-03-25 08:21:21 -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
Michael Snoyman
4dd9880389
Approot
2012-02-09 09:08:06 +02:00
Michael Snoyman
0511a1e351
yesod-core compiles and passes all tests (that was easy)
2011-12-27 16:11:52 +02:00
Greg Weber
236d55f00b
fix yesod mega
2011-11-26 10:44:56 -06:00