John Lenz
1a5aa23f13
static: fix the build on GHC 7.4
...
There were two build issues on GHC 7.4: using atomicModifyIORef'
and ByteString.Lazy.toStrict, both of which were missing. These
are now fixed.
In addition, looking at the IORef code more closely,
we want the quite a bit of strictness in the IORef.
The common case is that the widget content already exists in the map
(every reload of a page will call embedStaticContent), but until we
force the map the thunks holding the duplicated generated content will
be kept around, leaking memory. This will be the common situation since
the vast majority of the time the content already exists. Since
the containers module does not have a strict map until 0.5, use
unordered containers which does have a strict map.
2013-09-12 17:52:15 -05:00
John Lenz
8e16fd2227
static: update sample-embed.hs and point the old embedded static to the new one
2013-09-12 12:21:47 -05:00
John Lenz
2ad3977712
static: add several embedded generators
...
This constains the generators to embed files, directories,
and javascript compression
2013-09-12 12:21:47 -05:00
John Lenz
f8a35ce0a0
static: Add an embedded static subsite
...
This commit adds just the subsite itself. The subsite
works by running a list of generaters at compile time.
The entries produced by the generators are converted into
wai-app-static.WaiAppStatic.Storage.Embedded entries. Also,
addStaticContent is supported via an IORef. When a widget
produces static content (css, javascript), it is stuck into
the IORef inside the embedded static subsite. The embedded
static subsite will then serve it from the IORef, properly
using a 304 response if the client already has the content.
2013-09-12 12:21:33 -05:00
Michael Snoyman
c876974656
version bumps
2013-09-10 20:43:42 +03:00
Michael Snoyman
07aa7fe037
Merge remote-tracking branch 'origin/normalize-email'
...
Conflicts:
yesod-auth/yesod-auth.cabal
2013-09-09 17:09:22 +03:00
Michael Snoyman
7274341322
normalizeEmailAddress
2013-09-09 15:01:20 +02:00
Michael Snoyman
23b4564424
Do not include vault in yesod-platform
2013-09-09 08:30:56 +02:00
Michael Snoyman
43e806ef4e
true/false for boolField #595
2013-09-08 17:21:08 +02:00
Michael Snoyman
94e4310a9c
--bare option to init #515
2013-09-08 17:17:05 +02:00
Michael Snoyman
5b379067b2
Add warning about calling parseJsonBody twice
2013-09-08 16:52:56 +02:00
Michael Snoyman
8ae0b789e1
Merge branch 'master' into wai-2.0
2013-09-08 14:25:10 +02:00
Michael Snoyman
a3f004184e
platform update
2013-09-08 14:23:45 +02:00
Michael Snoyman
759eb4154b
Scaffolding tweak
2013-09-08 14:20:27 +02:00
Michael Snoyman
db17c0ade1
shakespeare 1.2/version bumps
2013-09-08 13:48:24 +02:00
Michael Snoyman
94f42659ea
Merge branch 'master' into wai-2.0
2013-09-08 13:23:09 +02:00
Michael Snoyman
679046cae0
Merge remote-tracking branch 'origin/master'
2013-09-08 13:10:14 +02:00
Michael Snoyman
e4c39d22bb
yesod-platform update
2013-09-08 13:08:59 +02:00
Michael Snoyman
5ed1a23390
Merge pull request #597 from Tarrasch/patch-4
...
Update README.md
2013-09-08 03:13:15 -07:00
Arash Rouhani
1005c3f009
Update README.md
2013-09-08 12:08:01 +02:00
Michael Snoyman
e29cd12ff8
Version bumps
2013-09-08 10:46:37 +02:00
Michael Snoyman
5642489841
Minor tweaks for #590
2013-09-01 16:15:03 +03:00
Michael Snoyman
f0ba8bb7f3
Merge branch 'master' of https://github.com/andrewthad/yesod
2013-09-01 15:46:12 +03:00
Michael Snoyman
6d9369e186
Merge pull request #593 from koterpillar/cryptohash-cryptoapi
...
Update to cryptohash-cryptoapi
2013-09-01 01:54:18 -07:00
Alexey Kotlyarov
f0bef8005f
Update to cryptohash-cryptoapi
...
Crypto.Hash.MD5 no longer exports the MD5 type, switch to
cryptohash-cryptoapi.
2013-09-01 15:05:27 +10:00
Michael Snoyman
833d83c3e3
Merge pull request #592 from lubomir/translate-auth
...
Add Czech translation for auth messages
2013-08-31 10:36:51 -07:00
Michael Snoyman
48c6ff3600
Merge pull request #591 from obscaenvs/patch-2
...
Changed description of hsenv
2013-08-31 10:32:21 -07:00
Lubomír Sedlář
94fd685046
Add Czech translation for auth messages
2013-08-31 13:37:20 +02:00
Fredrik Carlen
44f7cf0bf0
Changed description of hsenv
...
- `hsenv` works on Mac OS X also (at least Lion and Mountain lion).
- supplied link to forked, working version of `hsenv` at https://github.com/tmhedberg/hsenv
2013-08-31 10:56:56 +02:00
andrewthad
c9791bd2c7
Update Fields.hs
2013-08-30 12:21:40 -04:00
andrewthad
b8d47f880f
Added optionsPersistKey to Fields
...
There is no immediately obvious way to use optionsPersist with selectField. The function optionsPersistKey makes this possible. Example of use:
areq (selectField $ optionsPersistKey [] [Asc UserIdent] userIdent) "User" Nothing
2013-08-28 15:14:08 -04:00
Michael Snoyman
ffc27af9c2
Merge pull request #589 from lubomir/doc-update
...
Add more documentation to Yesod.Form.Functions
2013-08-24 11:21:27 -07:00
Lubomír Sedlář
1ea61ddfc7
Add more documentation to Yesod.Form.Functions
2013-08-23 16:44:21 +02:00
Michael Snoyman
e420705b07
Allow modification of confirmation email page
2013-08-20 13:38:11 +03: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
01738f354f
Scaffolding updates
2013-08-18 18:33:32 +03:00
Michael Snoyman
d5bf0f583d
Version bumps
2013-08-13 18:59:21 +03:00
Michael Snoyman
d1a44454e4
hsfiles update
2013-08-13 18:57:34 +03:00
Michael Snoyman
525467cf57
Merge pull request #578 from k-bx/master
...
Add postBody and setRequestBody functions to POST some data in a test.
2013-08-11 22:34:57 -07:00
Anthony Burzillo
9cd6573ea7
Remove uneeded whitespace from files created on init
2013-08-11 13:55:44 -04:00
Konstantine Rybnikov
928be6991e
Refactor a bit to make pattern matching happy and makeMultipart only work on multipart data.
2013-08-11 09:53:41 +03:00
Konstantine Rybnikov
59eb67e087
Add error-reporting when trying to add file or post-param after binary content is set.
2013-08-09 23:13:56 +03:00
Konstantine Rybnikov
441842ae12
Revert "Use GADTs for static guarantee you use right type of post data."
...
This reverts commit 3655af11d3 .
2013-08-09 22:48:09 +03:00
Michael Snoyman
e99302e93d
needOldPassword and checkPasswordSecurity
2013-08-07 09:21:29 +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
Michael Snoyman
97b78ad481
fromArgsSettings #583
2013-08-04 08:36:05 +03:00
Michael Snoyman
f0f85a0a03
Merge pull request #581 from lubomir/czech-translation-2
...
Add Czech translation to forms
2013-08-01 10:27:47 -07:00
Lubomír Sedlář
51f1b54b34
Add Czech translation to forms
2013-08-01 19:23:59 +02:00