on master help sign in
fix ToSample instance and update changelogs
commit95abfc40903414d8458db150ef0c2777a60b2d12 authorBrandon Martin <zmbmartin@gmail.com> dateThu 7 May 2015, 05:22 (11 years ago) parent10a6020
6 files changed+7−7
servant-client/CHANGELOG.md+1 servant-docs/CHANGELOG.md+1 servant-docs/example/greet.hs+2−7 servant-jquery/CHANGELOG.md+1 servant-server/CHANGELOG.md+1 servant/CHANGELOG.md+1
servant-client/CHANGELOG.md+1
@@ -1,5 +1,6 @@
110.3
22---
3+* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body
34* Support content-type aware combinators and `Accept`/`Content-type` headers
45* Added a lot of tests
56* Support multiple concurrent threads
servant-docs/CHANGELOG.md+1
@@ -1,5 +1,6 @@
110.4
22---
3+* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body
34* Allow for extra information to be added to the docs
45* Support content-type aware combinators of *servant-0.3*
56* Render endpoints in a canonical order (https://github.com/haskell-servant/servant-docs/pull/15)
servant-docs/example/greet.hs+2−7
@@ -53,13 +53,8 @@ instance ToParam (MatrixParam "lang" String) where
5353 "Get the greeting message selected language. Default is en."
5454 Normal
5555
56−instance ToSample () Greet where
57− toSample _ = Just $ Greet "Hello, haskeller!"
58−
59− toSamples _ =
60− [ ("If you use ?capital=true", Greet "HELLO, HASKELLER")
61− , ("If you use ?capital=false", Greet "Hello, haskeller")
62− ]
56+instance ToSample () () where
57+ toSample _ = Just ()
6358
6459instance ToSample Greet Greet where
6560 toSample _ = Just $ Greet "Hello, haskeller!"
servant-jquery/CHANGELOG.md+1
@@ -1,5 +1,6 @@
110.3
22---
3+* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body
34* Extend `HeaderArg` to support more advanced HTTP header handling (https://github.com/haskell-servant/servant-jquery/pull/6)
45* Support content-type aware combinators (but require that endpoints support JSON)
56* Add support for Matrix params (https://github.com/haskell-servant/servant-jquery/pull/11)
servant-server/CHANGELOG.md+1
@@ -1,5 +1,6 @@
110.3
22---
3+* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body
34* Add a `RouteMismatch` constructor for arbitrary HTTP response codes (https://github.com/haskell-servant/servant-server/pull/22)
45* Add support for the `Patch` combinator
56* Support for `Accept`/`Content-type` headers and for the content-type aware combinators in *servant-0.3*
servant/CHANGELOG.md+1
@@ -1,5 +1,6 @@
110.3
22---
3+* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body
34* Multiple content-type/accept support for all the relevant combinators
45* Provide *JSON*, *PlainText*, *OctetStream* and *FormUrlEncoded* content types out of the box
56* Type-safe link generation to API endpoints