Commit Graph

4602 Commits

Author SHA1 Message Date
Maximilian Tagher
ba2593c15f Add JSONResponse type
Closes #1481
2018-03-11 21:05:29 -07:00
Michael Snoyman
ff5618bd15
Merge pull request #1493 from agreif/patch-1
minor doc change
2018-03-05 17:07:27 +02:00
Alex Greif
760b947ed4
minor doc change 2018-03-05 14:09:38 +00:00
Michael Snoyman
e894239563
Add missing version bump 2018-03-05 11:21:53 +02:00
Michael Snoyman
cb229cf84c
Merge pull request #1492 from yesodweb/showRoutes
Derive Show instances for route data structures
2018-03-05 10:17:39 +02:00
Maximilian Tagher
08ef0e26dc Derive Show instances for route data structures
* It's very helpful to have a Show instance for debugging and development
* Currently third party packages are deriving this instance themselves which is not ideal.
    * http://hackage.haskell.org/package/yesod-routes-flow-2.0/docs/src/Yesod-Routes-Flow-Generator.html
    * http://hackage.haskell.org/package/yesod-routes-typescript-0.3.0.0/docs/src/Yesod-Routes-Typescript-Generator.html
    * This change would break those packages, which isn't great
         * At least the typescript one is broken anyway
2018-03-04 15:59:54 -08:00
Michael Snoyman
bdcb4272cd
Merge pull request #1490 from psibi/issue-1489
Remove MINIMAL pragma for authHttpManager
2018-03-04 14:33:47 +02:00
Sibi Prabakaran
ff043db45b
Update changelog 2018-03-04 13:39:31 +05:30
Sibi Prabakaran
c04d6f9ac7
Remove MINIMAL pragma for authHttpManager
We now have a default implementation for it. See this for more
information:
https://github.com/yesodweb/yesod/issues/1489#issuecomment-370200663

Helps in preventing warnings like this:

```
serverside.hs:40:10: warning: [-Wmissing-methods]
    • No explicit implementation for
        ‘authHttpManager’
    • In the instance declaration for ‘YesodAuth App’
   |
40 | instance YesodAuth App where
   |          ^^^^^^^^^^^^^
```
2018-03-04 13:20:21 +05:30
Michael Snoyman
a3f130233b
Relax a number of type signatures #1488 2018-02-20 13:51:36 +02:00
Michael Snoyman
63006970c6
Remove duplicate description field 2018-02-20 13:51:36 +02:00
Maximilian Tagher
f2b651b695
Merge pull request #1482 from pythonissam/bylabel-contain
Bylabel contain
2018-02-10 18:49:13 -08:00
Maximilian Tagher
a0963e77b2
Merge branch 'master' into bylabel-contain 2018-02-09 22:20:02 -08:00
pythonissam
b8f93e6203 Update the version to 1.6.2 2018-02-10 04:16:07 +00:00
kotaro
acf956443d Updated deprecation warnings accordingly 2018-02-10 08:28:24 +09:00
Michael Snoyman
1e9b7ee664
Comment out lts-7 for OS X 2018-02-05 16:14:19 +02:00
Michael Snoyman
7d60a57e5c
Merge branch 'RyanGlScott-master' 2018-02-05 15:38:12 +02:00
Michael Snoyman
8387ba3e23
More extra-deps for lts-7 2018-02-05 14:21:53 +02:00
Michael Snoyman
3014d8028c
Fix compilation in #1484
Pinging @RyanGlScott, these changes were necessary for older versions of
dependencies. Is there any problem with using this for GHC 8.4?
2018-02-05 12:14:54 +02:00
Ryan Scott
3408e1e630 Adapt to Semigroup changes in base-4.11 2018-02-04 20:09:37 -05:00
pythonissam
54614dd241 Update ChangeLog 2018-02-03 08:40:38 +00:00
pythonissam
88a23129fd Version bump 2018-02-03 08:40:38 +00:00
pythonissam
d03e92ff9b Add new fileByLabel-related functions 2018-02-03 08:40:29 +00:00
pythonissam
ed9306323c Add missing fileByLabelWithMatch and make existing fileByLabel-related functions to use it 2018-02-03 08:39:52 +00:00
pythonissam
064f41d9e9 created new byLabel-related functions 2018-02-03 08:39:40 +00:00
Michael Snoyman
450573ac35
Use newer simple-sendfile for Windows compat 2018-02-02 14:33:46 +02:00
Michael Snoyman
ce0c697659
Merge pull request #1464 from yesodweb/better-monads
Better monads
2018-02-02 11:27:06 +02:00
Michael Snoyman
6b660412e9
memory extra-dep 2018-02-02 10:07:45 +02:00
Michael Snoyman
2317e07851
Add foundation as an extra-dep 2018-02-02 09:45:00 +02:00
Michael Snoyman
3ff2f17b2c
cabal builds: comment out longer test part 2018-02-02 09:41:08 +02:00
Michael Snoyman
42e73e0bfd
Add gauge and basement to extra-deps 2018-02-02 00:36:57 +02:00
Michael Snoyman
c2f9dec1e6
Tighten base lower bound
Technically unnecessary since it's inherited from conduit, but this is
more explicit.
2018-02-02 00:35:30 +02:00
Michael Snoyman
5d49a85f40
Travis update 2018-02-02 00:35:21 +02:00
Michael Snoyman
6ad81f6d15
Merge remote-tracking branch 'origin/master' into better-monads 2018-02-02 00:17:37 +02:00
Michael Snoyman
7f78e81cc1
Lower bounds and missing extra-deps 2018-02-02 00:15:24 +02:00
Michael Snoyman
70d606c820
Updated stack.yaml 2018-02-02 00:04:15 +02:00
Michael Snoyman
fe233dd958
Merge pull request #1478 from jprider63/master
Update `mkYesodWith` and refactor so that `mkYesod` uses the context parser
2018-01-29 14:57:44 +02:00
James Parker
8796310eef More documentation for mkYesod and mkYesodWith 2018-01-24 23:55:57 -05:00
Maximilian Tagher
4901d66a52 Add .DS_Store to .gitignore file 2018-01-24 08:33:46 -08:00
Maximilian Tagher
70ecad3829
Merge pull request #1477 from yesodweb/tooLargeResponseErrorMessage
Give more detail in the error message for too large request bodies.
2018-01-24 08:32:58 -08:00
Michael Snoyman
fa8e1ac00f
Switch to SubHandlerFor
This is much more consistent than suddenly using a ReaderT for subsites.
Thanks to @jprider63 for the inspiration for this, I think it cleans
things up a lot!
2018-01-24 13:01:26 +02:00
James Parker
b71bfae261 Refactor so that mkYesod and mkYesodDispatch use the context parser 2018-01-22 00:45:44 -05:00
James Parker
18910b516b Change mkYesodWith to accept separate lists for contexts and type
arguments
2018-01-22 00:19:04 -05:00
Michael Snoyman
0f09393c34
Merge branch 'simple-content-type' of https://github.com/JaSpa/yesod into better-monads 2018-01-21 11:13:05 +02:00
Maximilian Tagher
6b22a0b9be Give more detail in the error message for too large request bodies.
* Just to be helpful to developers, give the maximum body length and their body length
* Also point developers to the function to change that value

(I don't think this leaks any sensitive info, because you can always binary search with different request body sizes to find the maximum allowable)
2018-01-18 18:30:34 -08:00
Janek Spaderna
492102537f [yesod] Bump version & add changelog entry 2018-01-18 12:11:43 +01:00
Janek Spaderna
7f6f1821e8 [yesod] Fix comment for contentTypeTypes & simpler implementation
In the implementation of contentTypeTypes make use of simpleContentType.
2018-01-18 12:00:46 +01:00
Michael Snoyman
6830a9840c
Merge branch 'better-monads' into no-transformers 2018-01-17 06:43:52 +02:00
Michael Snoyman
2047efd00a
Bump persistent version 2018-01-16 20:21:48 +02:00
Michael Snoyman
ad35ef9431
Deal with another sneaky exception 2018-01-16 16:10:23 +02:00