Thomas Dziedzic
6398206b8f
fix documentation spelling
2015-01-06 21:10:12 -08:00
Michael Snoyman
b3754498ec
Version bump
2014-12-20 18:25:15 +02:00
Patrick Boe
8b7c58f381
added functions to simplify application of an ssl-only policy to a site
2014-12-20 10:26:32 -05:00
Michael Snoyman
09df930de3
monad-control 1.0
2014-12-17 17:58:19 +02:00
Michael Snoyman
5f21c73d7d
Changelog fix and typo correction
2014-11-30 07:39:40 +02:00
Greg Weber
05f2a7631c
add Yesod.Core.Unsafe module
2014-11-29 17:45:56 -08:00
Michael Snoyman
9a64b1bdb0
MonadLoggerIO instances
2014-11-28 07:55:43 +02:00
Michael Snoyman
c95e74053b
Version bump
2014-11-28 07:47:30 +02:00
patrick brisbin
21cd47cc98
Add envClientSessionBackend, ENV-based session key
...
This can be useful if:
1. You can't rely on a persistent file system (e.g. Heroku)
2. Your application is open source (e.g. you can't commit the key)
By keeping a consistent value in the environment variable, your users will
have consistent sessions without relying on the file system.
Usage:
makeSessionBackend _ = fmap Just $ envClientSessionBackend 120 "SESSION_KEY"
2014-11-25 11:15:13 -05:00
Michael Snoyman
a65349612e
Support time 1.5
2014-11-25 07:18:11 +02: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
9a4348a0e3
Improve etag supported fpco/stackage-server#29 #868 #869
2014-11-19 11:03:55 +02:00
Michael Snoyman
b38abdba0f
notModified and setEtag
2014-11-15 20:31:27 +02: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
Greg Weber
7f775e1dde
document cache key
2014-10-02 09:11:23 -07:00
Greg Weber
aaeafb0591
add some documentation
2014-09-30 12:22:44 -07:00
Michael Snoyman
e21bfb4d94
GHC 7.4 fixes
2014-09-30 13:45:39 +03:00
Michael Snoyman
9ce4d49d0a
persistent 2.1 and warp 3.0.2
2014-09-30 06:57:38 +03:00
Michael Snoyman
3447510080
Clean up a bunch of warnings
2014-09-29 08:08:02 +03:00
Michael Snoyman
14d9b7ce71
Fix compilation error
2014-09-29 07:41:54 +03:00
Greg Weber
8fd0378c4b
TypeCache documentation
2014-09-24 09:04:41 -07:00
Greg Weber
f18d0a8bac
TypeCache typo and module exposure
2014-09-20 20:57:27 -07: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
f779004d19
Merge yesod-routes into yesod-core entirely
2014-09-07 17:34:37 +03:00
Michael Snoyman
29d7e252f1
Merge branch 'master' into yesod-1.4
2014-08-31 05:04:27 +03:00
Michael Snoyman
1e76a28f6d
withUrlRenderer
2014-08-31 02:24:08 +03:00
Michael Snoyman
9471399589
Merge branch 'master' into yesod-1.4
2014-08-28 05:19:21 +03:00
Michael Snoyman
d3df218a96
conduit 1.2 patch
2014-08-27 17:34:35 +03:00
Michael Snoyman
c66ef04f17
Merge branch 'master' into yesod-1.4
...
Conflicts:
yesod-form/Yesod/Form/Functions.hs
2014-08-25 20:20:16 +03:00
Michael Snoyman
05d31d6621
Add MonadActive instances
2014-07-30 11:33:38 +03:00
Michael Snoyman
e6eae8ee5a
Merge remote-tracking branch 'origin/master' into yesod-1.4
...
Conflicts:
yesod-routes/Yesod/Routes/Parse.hs
yesod-routes/test/Hierarchy.hs
yesod-routes/yesod-routes.cabal
2014-07-26 21:20:31 +03:00
Yuriy Syrovetskiy
13243aba54
typo
2014-07-25 19:07:01 +04:00
Michael Snoyman
21d1965774
Merge remote-tracking branch 'origin/master' into yesod-1.4
2014-06-15 15:49:51 +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
b93a5d1993
Merge branch 'master' into yesod-1.4
...
Conflicts:
yesod-core/test/YesodCoreTest/CleanPath.hs
yesod-persistent/yesod-persistent.cabal
2014-06-09 11:22:30 +03:00
Michael Snoyman
0a3ae4ef66
Merge remote-tracking branch 'origin/master' into yesod-1.4
2014-06-01 16:12:36 +03:00
Michael Snoyman
82de52e3d2
Various additional WAI 3.0 fixes
2014-05-22 21:04:28 +03:00
Michael Snoyman
71263ae047
Initial WAI 3.0 support, one test still failing
2014-05-22 20:17:29 +03:00
Michael Snoyman
cbbeb3b7f6
exceptions 0.6
2014-05-05 21:20:26 +03:00
Michael Snoyman
e9311d0e1f
ToWidget instances for Css, JS
2014-04-23 16:31:13 +03:00
Michael Snoyman
fe622d5345
Merge remote-tracking branch 'origin/master' into yesod-1.4
...
Conflicts:
yesod-auth/yesod-auth.cabal
yesod-form/Yesod/Form/Fields.hs
yesod-form/yesod-form.cabal
yesod-persistent/Yesod/Persist/Core.hs
2014-04-18 14:33:54 +03:00
Michael Snoyman
dfd7965b6b
Workarounds for older bytestrings
2014-04-16 14:31:54 +03:00
Michael Snoyman
e036f934f6
Add MonadCatch for WidgetT
2014-04-14 08:32:55 +03:00
Michael Snoyman
7133f75bf3
Note about strictness annotations
2014-04-10 20:36:46 +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
b8a73d9b7f
defaultMiddlewares and MonadCatch instance
2014-04-10 15:04:29 +03:00
Michael Snoyman
5a24477316
Fix some CPP
2014-04-09 07:40:38 +03:00
Michael Snoyman
7512cc2bfc
Add ToContent etc instance for Css and Javascript
2014-04-03 12:23:38 +03:00
Michael Snoyman
5edb77eb80
Use defaultShouldDisplayException
2014-03-30 09:38:36 +03:00
Michael Snoyman
76cff2ab23
MonadReader instance for HandlerT and WidgetT
2014-03-28 13:15:51 +03:00
Michael Snoyman
d764464152
conduit 1.1
2014-03-27 16:38:52 +02:00
Michael Snoyman
60b4684119
Drop usage of failure
2014-03-26 10:38:51 +02:00
Michael Snoyman
827b1d4bd2
Merge remote-tracking branch 'origin/master' into persistent2-simpler-dispatch
2014-03-20 20:38:14 +02:00
Michael Snoyman
24e8e53f64
Merge remote-tracking branch 'origin/master' into persistent2-simpler-dispatch
...
Conflicts:
.gitignore
yesod-core/yesod-core.cabal
2014-03-20 04:14:09 +02:00
Felipe Lessa
ddf64c1481
Helper data type for redirecting with fragment identifiers.
2014-03-19 19:52:17 -03:00
Michael Snoyman
c36dbf9302
Add missing import
2014-03-12 06:50:33 +02:00
Greg Weber
4b8cb247ce
add forkHandler. closes #680
...
Also fix import warnings in Handler
2014-03-11 18:33:45 -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
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
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
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
d4998d2246
Temp file upload changes in wai-extra 2.0.1 #630
2013-12-13 06:45:40 +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
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
3a9fa33b7e
Export a TH-used identifier #609
2013-10-13 12:11:15 +03:00
Michael Snoyman
5b379067b2
Add warning about calling parseJsonBody twice
2013-09-08 16:52:56 +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
Jonathan Fischoff
28e7bc26b8
Adding a ToTypedContent constraint to yesodMiddleware for response logging, etc.
2013-06-17 14:24:50 -07: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
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
3956958b7a
Better Show HandlerContents
2013-05-01 14:38:21 +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
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
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
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
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
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
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
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