Michael Snoyman
10709c4e26
Merge pull request #1122 from pseudonom/master
...
Add hook to apply arbitrary function to all handlers
2015-12-14 11:49:30 +02:00
mrkkrp
15c1573538
‘checkCsrfHeaderNamed’ → ‘checkCsrfParamNamed’
...
Also removed trailing whitespace. Actual typo fix is on line 1318.
2015-12-11 23:00:01 +06:00
mrkkrp
bb02d2b911
fix references to ‘Yesod.Core.Handler’
2015-12-11 22:40:06 +06:00
Eric Easley
21e49c7710
Fix tests for unwrapping hook
2015-12-10 09:53:55 -08:00
Eric Easley
56c19a2cd3
Add hook to apply arbitrary function to all handlers
2015-12-09 11:29:13 -08:00
Greg Weber
b271978ccf
Merge pull request #1105 from bitemyapp/master
...
JSON-specific sendResponseStatus
2015-12-07 16:04:07 -08:00
Michael Snoyman
de3818784a
getApprootText
2015-12-04 14:40:50 +02:00
Chris Allen
ae1015b628
shorter name
2015-11-25 23:01:49 -06:00
Chris Allen
6a60dac366
JSON-specific sendResponseStatus
2015-11-25 14:49:53 -06:00
David Turner
badabaa1ca
Update comment
2015-11-13 15:15:04 +00:00
David Turner
b9b2d0d609
Use AutoUpdate for session expiry date too
2015-11-13 13:40:19 +00:00
Michael Snoyman
bc09ac2550
Merge pull request #1086 from paul-rouse/master
...
Add guessApprootOr function
2015-10-13 17:27:15 +03:00
Paul Rouse
e4503ded60
Remove unnecessary underscores in guessApprootOr
2015-10-13 15:22:30 +01:00
Paul Rouse
692773326a
Add guessApprootOr function
2015-10-13 15:00:02 +01:00
Greg Weber
3f15e2a20e
Merge branch 'master' of github.com:yesodweb/yesod
...
Conflicts:
yesod-core/ChangeLog.md
yesod-core/yesod-core.cabal
2015-10-13 06:39:26 -07:00
Michael Snoyman
8e7476cb7a
Revert "Delete problematic test.hs"
...
This reverts commit e610f3b6f5 .
2015-10-13 10:57:17 +00:00
Michael Snoyman
5d0a4567f3
Add the guessApproot function (pinging @gregwebs)
2015-10-13 10:32:25 +00:00
Michael Snoyman
e610f3b6f5
Delete problematic test.hs
2015-10-13 10:32:01 +00:00
Greg Weber
3f2c550a06
version bump for neverExpires bug fix
2015-10-11 08:45:48 -07:00
David Turner
ef8bbf5820
Make comment more precise
2015-10-11 07:39:48 +00:00
David Turner
8dc54fc921
Update maximum expiry once per day
2015-10-11 07:28:52 +00:00
David Turner
5b4d5ced3b
Move auto-updater into YesodRunnerEnv
2015-10-10 15:58:39 +00:00
Mikkel Christiansen
25bbda2087
Remove unused applicative.
2015-08-26 16:10:56 +02:00
Mikkel Christiansen
04cb3730a0
Replace deprecated breakByte function.
2015-08-26 15:03:14 +02:00
Mikkel Christiansen
a47ceec445
GHC 7.10 import warnings removed from yesod-core.
2015-08-26 14:52:39 +02:00
Greg Weber
1567145110
version bump yesod-core to 1.4.15
2015-08-23 17:20:42 -07:00
Greg Weber
65bc93a6d6
1.4.15 Changelog
2015-08-23 17:16:11 -07:00
Daniel Díaz
5375bacf81
Placed App after mkYesod in the RawResponse test.
2015-08-23 22:53:13 +02:00
Daniel Díaz
e77f6bd709
Do not use reify unless the type name is in scope. Assume arity 0 when the type is not in scope.
2015-08-23 22:49:04 +02:00
Daniel Díaz
8130e2b7a9
Fixed mkYesodGeneral message in changelog, and added information about splicing breaking change.
2015-08-21 21:52:35 +02:00
Michael Snoyman
0fcbbb7951
Version bump
2015-08-20 08:02:42 +03:00
Maximilian Tagher
33982b2112
Add CSRF protection functions/middleware that support AJAX requests
2015-08-17 16:52:39 -07:00
Maximilian Tagher
620440d2b6
Update yesod-core changelog for 1.4.13
2015-08-16 19:18:35 -04:00
Greg Weber
0fdb78a6f2
Merge pull request #1055 from Daniel-Diaz/master
...
mkYesodGeneral: Argument types can now be polymorphic
2015-08-16 11:51:13 -07:00
Daniel Díaz
42ec7f53e9
Depend directly on template-haskell.
2015-08-11 22:10:12 +02:00
Daniel Díaz
4897c24d3f
Use CPP to adapt to template-haskell changes according to the version of base used.
2015-08-11 22:07:28 +02:00
Michael Snoyman
09343872c4
Version bump
2015-08-11 07:50:24 +03:00
Daniel Díaz
ea62a38464
mkYesodGeneral arguments can now be monomorphic or polymorphic types. It is possible to impose class instances to polymorphic type arguments.
2015-08-10 07:23:26 +02:00
Daniel Díaz
366bfbd319
Allow Site types to have type parameters.
2015-08-06 00:35:48 +02:00
Daniel Díaz
9991e307e3
Attempt to add support for parametrized types in mkYesod.
2015-08-06 00:13:28 +02:00
Andrew Martin
c4d154b512
Added getsYesod
2015-07-23 13:29:16 -04:00
Christopher Reichert
a5a627db58
Clarify IsString instance for Widget only works with Strings.
2015-07-21 13:19:00 -05:00
Christopher Reichert
66ed314866
Document IsString instance for WidgetT.
2015-07-21 12:24:33 -05:00
Andrew Martin
4e354c9e07
Improve type inference for WidgetT IsString instance
2015-07-21 11:37:09 -04:00
Andrew Martin
00635452b9
Add IsString instance for WidgetT site m ()
2015-07-21 11:07:52 -04:00
Michael Snoyman
0b0341a280
vector 0.11
2015-07-15 19:10:17 +03:00
Michael Snoyman
add408c535
Version bump
2015-07-02 18:53:47 +03:00
Andrew
e37ccee3d7
Use a let binding for greater clarity
2015-06-30 18:30:24 -04:00
Andrew Martin
e327963912
Don't show source location for logs that don't have that information
2015-06-30 17:02:33 -04:00
Michael Snoyman
bd7659017f
Add missing ChangeLog #1019
2015-06-24 05:02:36 +03:00
Andrew Martin
edf7ada64c
Export subHelper directly rather than doing a module export
2015-06-07 08:45:38 -04:00
Andrew Martin
b88295cf05
stop the module import cycle
2015-06-05 13:20:03 -04:00
Andrew Martin
92aa58dee5
Make stripHandlerT and subHelper available for public use
2015-06-05 08:07:37 -04:00
Michael Snoyman
b20c19d2c5
Version bump
2015-06-04 09:43:06 +03:00
Yitzchak Gale
f3d9bb2555
Unneeded import of Data.Maybe in Yesod.Core.Class.Yesod.
2015-06-03 11:48:02 +03:00
Yitzchak Gale
95c8d40010
Fix haddock about default log level.
2015-06-03 11:45:29 +03:00
Yitzchak Gale
bef07c5e12
Fix reference to default in haddock for shouldLog.
2015-06-03 11:18:33 +03:00
Yitzchak Gale
bd161ef5f7
Export defaults for logging methods of Yesod.
2015-06-03 11:16:43 +03:00
Michael Snoyman
882956255a
Better support for multiple cookie headers
2015-04-02 16:40:14 +03:00
Michael Snoyman
56d4b8c3ee
Version bump
2015-03-26 14:52:36 +02:00
Michael Snoyman
e50ce7ca1e
Merge branch 'master' of https://github.com/s9gf4ult/yesod
2015-03-26 14:51:14 +02:00
Aleksey Uimanov
79dc6c33b9
add lookupBasicAuth and lookupBearerAuth functions
2015-03-26 17:19:53 +05:00
Michael Snoyman
e85be6f118
Use 307 redirect for cleaning paths and non-GET requests #951
2015-03-15 11:45:32 +02:00
Michael Snoyman
376b6f9c0d
Allow blaze-builder 0.4
2015-03-10 14:56:44 +02:00
Michael Snoyman
df0cf82f56
Allow path-pieces 0.2
2015-02-19 11:56:24 +02:00
Michael Snoyman
6751d24d75
Version bumps
2015-02-09 07:25:08 +02:00
Maximilian Tagher
e57b62235f
Add more semigroups instances
2015-02-08 16:55:06 -08:00
Greg Weber
8086ca5d57
Semigroup instance for WidgetT
2015-02-08 14:09:10 -08:00
Michael Snoyman
887d7e8004
Doc update
2015-02-08 07:18:56 +02:00
Michael Snoyman
85d4477f96
Remove defunct reference to SpecialResponse ( fixes #925 )
2015-02-08 07:15:16 +02:00
Michael Snoyman
9f7f5dab1b
Version bump
2015-01-07 13:20:04 +02:00
Thomas Dziedzic
6398206b8f
fix documentation spelling
2015-01-06 21:10:12 -08:00
Michael Snoyman
bed6dafce8
Doc link updates
2014-12-21 15:23:52 +02: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
4b1758e3e3
Improved doc link
2014-12-15 23:47:29 +02:00
Michael Snoyman
94dad6e116
Corrected changelog
2014-11-30 15:42:55 +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
c5519b36ef
Rename changelog.md to ChangeLog.md (it was bugging me)
2014-11-28 07:47:52 +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
5622e96725
README.md
2014-11-23 12:18:41 +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
b15ce6b1ea
Version bump
2014-11-19 11:10:45 +02: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
ec987529ba
Version bump
2014-11-09 14:43:25 +02:00
Greg Weber
898c0a1e18
test case for toWidget* functions
2014-10-27 21:16:03 -07:00
Michael Snoyman
5a426529db
Version bump/changelog start
2014-10-20 11:53:57 +03: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
Maximilian Tagher
e49ccb7871
Document Route typeclasses
2014-10-05 15:06:23 -07:00
Michael Snoyman
dbc251b9ee
Version bump
2014-10-03 08:50:25 +03:00