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
Greg Weber
ffaa1d6a32
favor BottomOfBody
2012-02-26 16:41:15 -08:00
Michael Snoyman
e3a07d2b80
Version bump
2012-02-21 15:17:56 +02: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
Felipe Lessa
124d142119
Bump yesod-core to 0.10.2.
2012-02-16 12:19:50 -02: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
b26868cd28
Version bumps
2012-02-09 15:20:15 +02: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
Luite Stegeman
beac945521
fast-logger bump
2012-02-01 14:35:04 +01: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
Michael Snoyman
8bb507084d
Merge pull request #246 from paronsson/master
...
Issue #237 : A generalized setCookie function must be available
2012-01-29 21:06:18 -08: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
2724785e04
conduit 0.2
2012-01-28 23:46:11 +02: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
Michael Snoyman
88882861cf
Get rid of an undefined in scaffolding
2012-01-19 19:18:46 +02:00
Michael Snoyman
97be0d1b90
Merge pull request #230 from sol/clickable-repository-urls
...
Use HTTP repository URLs
2012-01-18 04:01:58 -08:00
Michael Snoyman
8c4a8102a0
Newer conduit, http-conduit
2012-01-18 13:02:42 +02:00
Greg Weber
e5ad426976
document option to use redirectWith
2012-01-18 07:02:14 -03:00
Simon Hengel
5c2f2b11c3
Use HTTP repository URLs
...
That way they get linked from Hackage.
2012-01-18 09:45:31 +01:00
Greg Weber
7307503d81
fix outdated redirect doc
2012-01-18 00:10:32 -03:00