Commit graph

1392 commits

Author SHA1 Message Date
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
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
Oleg Grenrus
094f28b42d Merge pull request #664 from phadej/new-build
Make servant buildable with cabal new-build
2017-01-16 11:34:59 +02:00
Oleg Grenrus
d62865a71c Run also test/ doctests 2017-01-16 11:09:41 +02:00
Oleg Grenrus
d5e73bf577 Make servant buildable with cabal new-build 2017-01-16 11:03:06 +02:00
Oleg Grenrus
8822c12530 Merge pull request #666 from phadej/bug-fix-for-haslink
Bug fix for haslink
2017-01-16 11:01:45 +02:00
Oleg Grenrus
2b12436d3b Fix tests (URI -> Link) 2017-01-16 10:47:22 +02:00
Oleg Grenrus
826f0caf5b Add changelog entry 2017-01-16 10:47:22 +02:00
Alejandro D. P
9e4285f99d Yielding for safe instances of HasLink 2017-01-16 10:47:22 +02:00
Oleg Grenrus
372c1e2a32 Update stack.yaml to use lts-6.27 2017-01-16 10:47:22 +02:00
Oleg Grenrus
cfaa7a06be Merge pull request #665 from phadej/client-monad-control
Add MonadBaseControl IO ClientM instance
2017-01-16 10:25:35 +02:00
Oleg Grenrus
e6206cc51e Add more changelog entries 2017-01-16 10:11:38 +02:00
Oleg Grenrus
6faa742c4a Update changelog 2017-01-16 10:02:54 +02:00
Oleg Grenrus
b548f8df86 Add MonadBaseControl IO ClientM instance 2017-01-16 09:51:39 +02:00
Alp Mestanogullari
eac364e98c Merge pull request #661 from kosmikus/pr/servant-client-streaming-request-body
servant-client: generalize the function to set the request body
2017-01-12 15:58:03 +01:00