Commit graph

1755 commits

Author SHA1 Message Date
Oleg Grenrus
d4fe0e582a Fix stylistic issues 2017-01-19 00:57:31 +02:00
Oleg Grenrus
2caabad61a Expose ResourceT, fix the test 2017-01-19 00:57:31 +02:00
Oleg Grenrus
091f6f4412 Add failing test 2017-01-19 00:57:31 +02:00
Oleg Grenrus
bc6ff20f4d Use resourcet for resource managment 2017-01-19 00:57:31 +02:00
Oleg Grenrus
484bc9cb64 Merge pull request #669 from phadej/json-with-charset
Change JSON content type to add the charset
2017-01-18 13:48:07 +02:00
Oleg Grenrus
7793b52d23 Change JSON content type to add the charset 2017-01-18 13:40:18 +02:00
Oleg Grenrus
6d0aa92517 Merge pull request #674 from phadej/delayed-cleanup-ioref-tests
Delayed cleanup ioref tests
2017-01-18 10:36:12 +02:00
Oleg Grenrus
60ee1ab570 Rewrite delayed cleanup tests using IORefs 2017-01-18 10:26:23 +02:00
Alp Mestanogullari
bc13d5cd3e warning free 2017-01-17 23:10:29 +02:00
Alp Mestanogullari
92786feead add some basic tests for the cleanup machinery in Delayed 2017-01-17 22:29:37 +02:00
Alp Mestanogullari
5d1f03ba1a use an ioref to store clean up actions instead of a field in Delayed, allowing early clean up registration 2017-01-17 22:29:37 +02:00
Alp Mestanogullari
7fb11dae3c make cleanup in Delayed more resistant to exceptions 2017-01-17 22:29:37 +02:00
Alp Mestanogullari
6ab0296d62 fix a warning 2017-01-17 22:29:37 +02:00
Alp Mestanogullari
124c6de1eb add a field in Delayed that lets us specify a clean up action that can use the result of bodyD to perform some IO clean up operation 2017-01-17 22:29:36 +02:00
Oleg Grenrus
cce0f59ec8 Merge pull request #658 from haskell-servant/file-serving
Revamp file serving module
2017-01-17 22:09:57 +02:00
Oleg Grenrus
c50fdefe32 Merge pull request #640 from fierce-katie/generic-client
Generic client
2017-01-17 17:06:17 +02:00
Catherine Galkina
af1b267726 Fix servant-client tests after rebase 2017-01-17 16:34:30 +03:00
Catherine Galkina
aa4b10c9ca Add comments for GClientLikeP and GClientLikeL classes 2017-01-17 16:29:24 +03:00
Catherine Galkina
9d52cff1bb Fix ghc-7.8.4 build 2017-01-17 16:29:24 +03:00
Catherine Galkina
01324754da Update comment in Servant.Client.Generic 2017-01-17 16:29:24 +03:00
Catherine Galkina
5fa99bee93 Expand left-nested APIs by default 2017-01-17 16:29:24 +03:00
Catherine Galkina
d128faee4d Update CHANGELOG 2017-01-17 16:29:24 +03:00
Catherine Galkina
06217ace66 Fix typos in examples 2017-01-17 16:29:24 +03:00
Catherine Galkina
682d7ead5c Update example in Servant.Client.Generic 2017-01-17 16:29:24 +03:00
Catherine Galkina
3cc667892c Add tests for Servant.Client.Generic 2017-01-17 16:29:24 +03:00
Catherine Galkina
31e1ceb6d0 Add Servant.Client.Generic module 2017-01-17 16:29:24 +03:00
Alp Mestanogullari
57445ac1c9 changelog entry 2017-01-17 14:15:32 +02:00
Alp Mestanogullari
6d35f3d88f reintroduce serveDirectory (to give some time to users to change their code), but deprecate it 2017-01-17 14:14:46 +02:00
Alp Mestanogullari
c655c6e474 tutorial fix 2017-01-17 14:14:46 +02:00
Alp Mestanogullari
0a3b2272de fix static file serving test 2017-01-17 14:14:46 +02:00
Alp Mestanogullari
8efabed5c6 Revamp static file serving module.
Instead of only exposing 'serveDirectory', which picks a specific static file
serving strategy (file server settings), we now expose 4 different variants each
corresponding to an variant of StaticSettings in wai-app-static.

In addition to these, we expose a more flexible 'serveDirectoryWith' function
which allows the user to specify some arbitrary StaticSettings, if the 4
existing variants do not cover a user's needs.
2017-01-17 14:14:46 +02:00
Oleg Grenrus
c09c0cfd3f Merge pull request #667 from phadej/abstract-handler
Make Handler a newtype
2017-01-17 14:14:03 +02:00
Simon Hafner
b3be590dad TypeError annotations for AllCTRender 2017-01-16 23:16:27 +01:00
Oleg Grenrus
555b60ea06 Merge pull request #345 from haskell-servant/fizruk/type-level-#305
Servant.API.TypeLevel
2017-01-16 14:53:07 +02:00
Oleg Grenrus
c7c6c054a5 Add Logic subsection to the export list 2017-01-16 14:36:51 +02:00
Oleg Grenrus
55c8f0b4a1 Add changelog entry 2017-01-16 13:59:24 +02:00
Oleg Grenrus
3c83f615ca Write explicit export list in Servant.API.TypeLevel 2017-01-16 13:54:00 +02:00
Oleg Grenrus
6cf3188907 Fix doctests 2017-01-16 13:43:24 +02:00
Julian K. Arni
931e67f347 Loads of documetation and doctests. 2017-01-16 13:20:39 +02:00
Julian K. Arni
02e4281d51 Custom type errors 2017-01-16 13:20:39 +02:00
Julian K. Arni
92b1196830 Redundant import fixes 2017-01-16 13:20:39 +02:00
Julian K. Arni
e0cd899e06 Updated changelog for Servant.API.TypeLevel changes 2017-01-16 13:20:39 +02:00
Nickolay Kudasov
b836f13dea Remove Elem from servant-foreign 2017-01-16 13:20:39 +02:00
Nickolay Kudasov
a6de4ba123 Remove IsIn from servant-docs 2017-01-16 13:20:39 +02:00
Nickolay Kudasov
e9b281f3cc Add IsIn and IsSubAPI constraints 2017-01-16 13:20:39 +02:00
Nickolay Kudasov
09c8464a5a Move type-level operations from Utils.Links to API.TypeLevel 2017-01-16 13:20:37 +02:00
Oleg Grenrus
5168157757 Make Handler a newtype 2017-01-16 12:18:49 +02:00
Oleg Grenrus
48014f4a66 Merge pull request #668 from phadej/fix_js_function_identifiers
Fix js function identifiers
2017-01-16 12:15:35 +02:00
Oleg Grenrus
77f69101fb Add changelog and resurrect one test (higlights the change) 2017-01-16 11:53:14 +02:00
Dario Bertini
c20c09411d Fix javascript function name generation, mostly fixes #191
and remove js-specific code in servant-foreign (code which would now be dead)
2017-01-16 11:47:55 +02:00