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
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
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
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
a73cac167e
wai 1.4
2013-02-18 12:39:20 +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
3786362300
Add Failure instance for GHandler
2013-01-27 19:04:18 +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
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
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
a598846bd3
Better formatting of error messages
2012-11-12 11:24: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
Piyush P Kurur
e32f37eadd
refactored mkYesodGeneral to use mkDispatchInstance
2012-11-07 16:51:25 +05:30
Piyush P Kurur
30ddc17384
yesod-core: generic dispatch instance generation fixes #427 partially.
2012-10-26 15:23:54 +05:30
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
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
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
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
ebc737a5cb
conduit 0.5
2012-06-22 15:28:14 +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
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
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
742ffa4d14
Automatically apply toWidget to ^{} interpolations
2012-04-03 08:07:57 +03:00
Luite Stegeman
396644081c
make SessionBackend more flexible
2012-03-31 01:36:44 +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
2baeddd698
fix doctype 5
2012-03-25 08:21:21 -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
0618c5f6a5
WaiSubsite
2012-03-20 15:23:27 +02: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
ffaa1d6a32
favor BottomOfBody
2012-02-26 16:41:15 -08:00
Michael Snoyman
4c21c092ab
Fix Haddocks ( #277 )
2012-02-21 15:17:36 +02:00
Tom Streller
44119c6e02
added svg content type
2012-02-19 23:09:12 +01:00
Greg Weber
9b8b20e058
tests and better docs for jsLoader
2012-02-16 16:11:10 -08:00
Greg Weber
651a1f8abd
more flexible js loading
...
* write your own async jsLoader widget.
* Suport loading from the bottom of body tag.
Bottom of the page is actually the best default until you profile your
application.
2012-02-12 08:11:45 -08:00
Luite Stegeman
32d5c3f5f1
Improve makeSessionBackend documentation
2012-02-11 20:37:40 +01:00
Luite Stegeman
a37beb3447
Add encryptKey and clientSessionDuration for 0.10 compatibility
2012-02-11 20:33:26 +01:00
Luite Stegeman
b5b27f2b15
Make session storage configurable
2012-02-10 19:22:31 +01:00
Greg Weber
6b4f181b49
fix type inference of OverloadedStrings
...
see: http://hackage.haskell.org/trac/ghc/ticket/5858#comment:3
2012-02-10 08:15:06 -08:00
Michael Snoyman
4dd9880389
Approot
2012-02-09 09:08:06 +02:00
Greg Weber
b7924975b0
yepnope loads in the <head>. closes #257
...
previous commit just put modernizr/yepnope in the head
2012-02-08 10:06:44 -08:00
Greg Weber
91d6a121d6
Revert "yepnope/modernizr is included in <head> ( #256 )"
...
This reverts commit 3b59c48dbc .
2012-02-08 10:04:57 -08:00
Michael Snoyman
3b59c48dbc
yepnope/modernizr is included in <head> ( #256 )
2012-02-07 16:37:02 +02:00
Michael Snoyman
935912f31c
cookie 0.4
2012-02-06 14:36:15 +02:00
Corey O'Connor
e650df437e
mkRenderRouteInstance should be passed full foundation type
2012-02-04 11:38:16 -08:00
Michael Snoyman
410321f7ca
Match wai changes for parseRequestBody
2012-02-02 12:24:50 +02:00
Greg Weber
55ee566a1c
remove Coffeescript types - now just Javascript
2012-02-01 23:35:41 -06:00
Greg Weber
704892bdda
lengthen variable names
2012-02-01 23:15:36 -06:00
Greg Weber
8b92389bc0
update shakespeare-js to 0.11
2012-01-31 09:10:19 -03:00
Michael Snoyman
2f38ddaff3
Temporarily remove sessionIpAddress ( #243 )
2012-01-31 06:53:47 +02:00
Michael Snoyman
4962529006
sessionIpAddress False by default ( #243 )
2012-01-30 13:01:34 +02:00
Michael Snoyman
b86b2cb75e
Fix warning
2012-01-30 07:16:04 +02:00
Pär-Anders Aronsson
88c3b12c86
Minor naming isssue handled.
2012-01-29 21:11:31 +01:00
Pär-Anders Aronsson
4796ad77d4
Generalized cookie handling.
...
Signatures for setCookie & deleteCookie changed.
Helper function getExpires added to API.
2012-01-29 21:05:01 +01:00
Michael Snoyman
9b92215819
WAI 1.1
2012-01-26 15:56:13 +02:00
Michael Snoyman
fec0d42827
lookupSessionBS/setSessionBS ( #235 )
2012-01-24 18:43:30 +02:00
Michael Snoyman
61efa0e1af
Fix trailing doublequote on log message
2012-01-24 13:10:59 +02:00
Michael Snoyman
e6577832b4
Scaffolding uses boilerplate ( #234 )
2012-01-22 20:32:44 +02:00
Greg Weber
e5ad426976
document option to use redirectWith
2012-01-18 07:02:14 -03:00
Greg Weber
7307503d81
fix outdated redirect doc
2012-01-18 00:10:32 -03:00
Michael Snoyman
4d5c123935
Better multiSelectField ( #183 )
2012-01-17 14:13:20 +02:00
Michael Snoyman
0e076d5198
Fixed GWidget Functor instance
2012-01-17 14:13:20 +02:00
Michael Snoyman
7aa5c02c35
Use 303 for HTTP/1.1 ( #217 )
2012-01-17 08:32:01 +02:00
Bryan Richter
c4820cf1c0
Simple module doc pointing to shakespeare-i18n.
2012-01-15 08:32:47 -08:00
Michael Snoyman
251f83f673
unauthorizedI
2012-01-13 11:29:05 +02:00
Greg Weber
080de0a4e1
development/production logger. dev flushes
2012-01-13 00:23:16 -03:00
Michael Snoyman
dfbdaf0b4c
Some fixes noticed on working with yesodweb
2012-01-08 11:05:05 +02:00
Michael Snoyman
b586c41589
logLevel ( #197 )
2012-01-08 06:57:29 +02:00
Michael Snoyman
95b6678e9f
Changed to new redirect system ( #202 )
2012-01-07 21:53:58 +02:00
Michael Snoyman
8ba59eac43
Two letter language codes ( #195 )
2012-01-07 19:02:28 +02:00
Michael Snoyman
858b4cc4c2
gzip changes
2012-01-06 15:29:00 +02:00
Michael Snoyman
5321bd0dfa
Fix warnings
2012-01-05 15:47:24 +02:00
Michael Snoyman
0a9df1076e
cleanPath tests again
2012-01-05 05:46:20 +02:00
Michael Snoyman
1e8b15acff
Move route parsing to yesod-routes
2012-01-05 05:38:31 +02:00
Michael Snoyman
03da3b021a
tests pass, except clean path
2012-01-03 20:41:48 +02:00
Michael Snoyman
c499e880b6
yesod-core compiles with yesod-routes (tests fail)
2012-01-03 20:33:51 +02:00
Michael Snoyman
61f0c26e9f
MonadLift
2011-12-30 13:30:24 +02:00
Michael Snoyman
a797cd3fe3
Completely removed GHandlerT and GGWidget
2011-12-29 15:31:06 +02:00
Michael Snoyman
6eddfbc273
All cookie functions work on Text
2011-12-27 16:37:54 +02:00
Michael Snoyman
0511a1e351
yesod-core compiles and passes all tests (that was easy)
2011-12-27 16:11:52 +02:00
Michael Snoyman
7036402b0a
Initial cabal file update for 0.10, everything is broken
2011-12-27 15:54:49 +02:00
Greg Weber
3cfc5f4f31
give the real version number
2011-12-25 14:04:45 -03:00
Greg Weber
dd3fa62f38
restore original makeLogger api, but deprecate
2011-12-25 14:04:14 -03:00
Greg Weber
8bc3873080
use fast-logger/wai-logger
2011-12-24 23:19:16 -03:00
Greg Weber
c0ab2e6178
import qualified Text as TS -> as T
2011-12-24 23:19:16 -03:00
Greg Weber
0ef60e752f
closes #52 - use 307 redirect for http 1.1
2011-12-23 07:04:56 -03:00
Michael Snoyman
7e643d6848
Yesod.Message moved to shakespeare-i18n
2011-12-14 09:18:27 +02:00
Michael Snoyman
a1dc16b364
Hide a deprecation warning
2011-12-14 09:18:27 +02:00
Michael Snoyman
49f2da73ee
Deprecate Yesod.Config; more configurable config in yesod-default
2011-12-14 09:18:27 +02:00
Michael Snoyman
d39e0d9bfd
Widget is a Writer
2011-12-06 14:19:54 +02:00
Michael Snoyman
168e301fee
Handler: RWS -> Reader, use an IORef for mutable state
2011-12-06 13:49:26 +02:00
Michael Snoyman
7619e4e9dd
monad-control 0.3
2011-12-05 11:20:36 +02:00
Michael Snoyman
ce31a9c8ab
Removed ErrorT from Handler
2011-12-05 11:20:36 +02:00
Arash Rouhani
2e1aa2d261
Update isAuthorized documentation
2011-12-04 22:49:36 +01:00
Michael Snoyman
9a195e5087
Add (another) missing file
2011-11-30 18:37:25 +02:00
Michael Snoyman
49df963196
Per-request caching
2011-11-29 00:15:21 +02:00
Michael Snoyman
3aa567a631
Handler is now RWS
2011-11-29 00:15:20 +02:00
Greg Weber
1ff5bf083f
expose parseRoutesNoCheck & parseRoutesFileNoCheck
...
related to #174
2011-11-26 21:15:14 -06:00
Michael Snoyman
be16db1454
Don't use JSON-P middleware by default
2011-11-26 22:31:34 +02:00
Michael Snoyman
4d2f4a3b4f
Remove a painful slowdown from randomIV
2011-11-25 15:11:15 +02:00
Greg Weber
d33bf4f909
add yesod-mega
2011-11-23 08:44:13 -06:00
Greg Weber
303057222f
comment & white space
2011-11-22 08:30:43 -06:00
Greg Weber
d66ef9b057
clarify findOverlaps RouteParsing code
2011-11-22 08:06:35 -06:00
Michael Snoyman
965884d675
Widgets use Builder for CSS
2011-10-15 21:53:46 +02:00
Michael Snoyman
e5a44cfc8e
Fix catchIter
2011-10-06 16:51:20 +02:00
Michael Snoyman
f5b5dc9b10
Distilled ErrorHandling bug to simple catchIter bug
2011-10-06 16:46:02 +02:00
Michael Snoyman
933f0086d2
Scaffolding uses PersistConfig
2011-09-24 21:51:44 +03:00
Michael Snoyman
ea75eb6bfb
Fix yepnope typo
2011-09-23 09:43:39 +03:00
Michael Snoyman
1f3df69787
yepnopeJs
2011-09-23 09:22:06 +03:00
Michael Snoyman
1dbbfc8d06
More explicit config error messages; fix defaultArgConfig
2011-09-22 07:32:50 +03:00
patrick brisbin
b13875b8a6
make sqlite db a Text
2011-09-21 18:52:08 -04:00
patrick brisbin
cfb11cca89
Remove -text dep, make Postgresql work...
2011-09-21 17:29:55 -04:00
patrick brisbin
df52b8a340
Fix merge conflict, exposed modules
2011-09-21 16:31:09 -04:00
patrick brisbin
8f02508500
Finalizing Yesod.Config
...
* Split DbConfig into separate types to ease scaffolding
* Add safeRead and type sig on withYaml...
* Add documentation
2011-09-21 16:19:46 -04:00
Björn Buckwalter
39ef74cb10
Altered nonce comment (modeled after encryptKey).
...
I note that for `key' == Nothing` it should probably hold that
`session' == []` as implemented in defaultYesodRunner, so perhaps the
comment regarding ignoring pre-existing `nonceKey` is redundant. But
a custom `yesodRunner` could arguably violate this invariant(?).
2011-09-21 22:31:59 +08:00
Björn Buckwalter
4d1ea8520a
Revert 33ee15d56f.
...
Revert to the older faster toChar. I would have just removed the
old commit from history but it seems that would call for a rebase
which I hear is a bad idea in a public branch. Thus this commit.
2011-09-21 21:53:57 +08:00
Björn Buckwalter
f23ca419e9
Merge branch 'master' of https://github.com/yesodweb/yesod into testable
2011-09-21 21:48:27 +08:00
patrick brisbin
ca55a891c8
Rewrite AppConfig loader
...
* Remove AppEnv
* Add logic to set approort smartly in most cases
* Refactor YAML parser
* Update yesod-default to match
There's still much todo...
2011-09-20 22:55:31 -04:00
patrick brisbin
48bc765915
Merge branch 'master' into default-main
2011-09-19 16:15:09 -04:00
patrick brisbin
cfb6e1e24a
Move bulk of Settings/Main out of -core
...
Trim settings to only the AppConfig def and an AppEnv typeclass, rename
to Config but leave in -core
2011-09-19 15:12:19 -04:00
Michael Snoyman
fe2e017680
gzipCompressFiles
2011-09-19 15:53:41 +03:00
Björn Buckwalter
7b3d69f657
TestApi: improve docs and remove Request (..).
2011-09-17 01:48:02 +08:00
Björn Buckwalter
5cec074cfb
Harmonize reqCookie and acceptLang.
2011-09-17 01:19:03 +08:00
Björn Buckwalter
09017eb29a
Clearer language prioritization code.
2011-09-17 01:02:26 +08:00
Björn Buckwalter
33ee15d56f
Shorter more readable toChar.
2011-09-17 00:43:16 +08:00
Björn Buckwalter
4ed740724e
Yesod.Internal.TestApi exports internals for tests
2011-09-17 00:13:26 +08:00
Björn Buckwalter
b83029dc36
Add test suite for Yesod.Internal.Request.
2011-09-16 21:39:57 +08:00
Björn Buckwalter
817ab988e0
Comment explaining the behavior of nonce.
...
Someone should confirm that this the intended behavior!
2011-09-16 12:01:15 +08:00
Björn Buckwalter
4d55332afc
Break out randomString for testing in isolation.
2011-09-16 11:44:03 +08:00
Björn Buckwalter
884c363ebf
Pure and testable parseWaiRequest.
2011-09-16 11:43:01 +08:00
Björn Buckwalter
ffefbb41b9
Aestetic reordering of composed functions.
2011-09-15 15:13:54 +08:00
patrick brisbin
900e9476f3
Move Settings/Main out of -core
2011-09-13 21:28:33 -04:00
Oscar Picasso
bd617a846e
reworded 'joinPath' comments
2011-09-11 17:47:21 -04:00
patrick brisbin
41f1718387
Provide a default for withDevelAppPort
2011-09-11 16:52:54 -04:00
patrick brisbin
b9bc2ee1c5
Fix typo in the postgres yaml name
2011-09-11 15:12:06 -04:00
patrick brisbin
256245cd2b
Add mongo connection loader
2011-09-11 13:06:53 -04:00
patrick brisbin
bd843a7acc
Add typical connStr loading functions
2011-09-11 12:30:22 -04:00
Björn Buckwalter
864abd6ed1
Clean up nonce generation.
2011-09-12 00:16:01 +08:00
patrick brisbin
fed3f0c0fa
Fix logical error
2011-09-11 00:35:34 -04:00
patrick brisbin
dcb27df1fc
Be a little more configurable
2011-09-11 00:17:07 -04:00
patrick brisbin
86c8abb853
Limit exports
2011-09-11 00:16:43 -04:00
patrick brisbin
d3c7ccebe1
Provide sane defaults with less scaffolding
...
Yesod.Settings provides the typical definitions for AppConfig,
AppEnvironment, and loadConfig (read from YAML).
Yesod.Main provides a single defaultMain function which accepts your
usual withSiteArg function and runs via Warp calling the now provided
loadConfig to figure out what to do.
Note: Yesod re-exports Y.Settings and Y.Main -- This is probably not the
right thing to do since it would cause collisions with users not using
the provided functionality (including all existing users).
2011-09-10 23:21:35 -04:00
Luite Stegeman
f4a3569d37
Add UndecidableInstances to fix compile with GHC 6.12
2011-09-02 17:05:13 +03:00
Michael Snoyman
d1bb17304a
Builds properly with stricter rules
2011-08-28 11:02:32 +03:00
Michael Snoyman
9b9b021705
IsString SomeMessage instance
2011-08-23 16:48:17 +03:00
Michael Snoyman
bab00d13fa
TH defines Widget and Handler type synonyms
2011-08-22 19:33:17 +03:00
Greg Weber
d859e5c3f9
fix Coffeescript types
2011-08-22 08:38:41 -07:00
Michael Snoyman
507ad4a772
Better ToWidget* instances
2011-08-22 17:07:08 +03:00
Greg Weber
659e120024
#ifGHC7 [hamlet| -> [HAMLET|
2011-08-20 06:42:33 -07:00
Michael Snoyman
67c1c55e41
clientsession 0.7
2011-08-19 10:36:57 +03:00
Michael Snoyman
a4bfb2a0ca
Mirror naming changes in shakespeare
2011-08-18 17:59:25 +03:00
Michael Snoyman
3f5c8f1dd3
Move SomeMessage to yesod-core
2011-08-09 19:23:59 +03:00
Michael Snoyman
f6ab5c05dc
Everything building with Hamlet 0.10, scaffolding not fixed yet
2011-08-09 16:48:24 +03:00
Michael Snoyman
ccb9bba8cd
ToWidget* classes
2011-08-09 13:02:14 +03:00
Greg Weber
4b6147aa1a
add Logger to scaffolding
2011-08-04 14:14:00 -07:00
Michael Snoyman
d55fd0fc64
Fix Yesod.Logger location
2011-07-24 07:47:22 +03:00
Michael Snoyman
2dc10de435
Add 'yesod-core/' from commit '982d6185bee75b078bee92bd8a2e8743707f1922'
...
git-subtree-dir: yesod-core
git-subtree-mainline: cd5ee0fb12
git-subtree-split: 982d6185be
2011-07-22 08:59:56 +03:00