diff --git a/servant-client/CHANGELOG.md b/servant-client/CHANGELOG.md index 814e20f9..7667277c 100644 --- a/servant-client/CHANGELOG.md +++ b/servant-client/CHANGELOG.md @@ -1,5 +1,6 @@ 0.3 --- +* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body * Support content-type aware combinators and `Accept`/`Content-type` headers * Added a lot of tests * Support multiple concurrent threads diff --git a/servant-docs/CHANGELOG.md b/servant-docs/CHANGELOG.md index 94524a55..44cbdde5 100644 --- a/servant-docs/CHANGELOG.md +++ b/servant-docs/CHANGELOG.md @@ -1,5 +1,6 @@ 0.4 --- +* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body * Allow for extra information to be added to the docs * Support content-type aware combinators of *servant-0.3* * Render endpoints in a canonical order (https://github.com/haskell-servant/servant-docs/pull/15) diff --git a/servant-docs/example/greet.hs b/servant-docs/example/greet.hs index 1c614dd9..1835b290 100644 --- a/servant-docs/example/greet.hs +++ b/servant-docs/example/greet.hs @@ -53,13 +53,8 @@ instance ToParam (MatrixParam "lang" String) where "Get the greeting message selected language. Default is en." Normal -instance ToSample () Greet where - toSample _ = Just $ Greet "Hello, haskeller!" - - toSamples _ = - [ ("If you use ?capital=true", Greet "HELLO, HASKELLER") - , ("If you use ?capital=false", Greet "Hello, haskeller") - ] +instance ToSample () () where + toSample _ = Just () instance ToSample Greet Greet where toSample _ = Just $ Greet "Hello, haskeller!" diff --git a/servant-jquery/CHANGELOG.md b/servant-jquery/CHANGELOG.md index 99eeaf5f..e3a18b22 100644 --- a/servant-jquery/CHANGELOG.md +++ b/servant-jquery/CHANGELOG.md @@ -1,5 +1,6 @@ 0.3 --- +* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body * Extend `HeaderArg` to support more advanced HTTP header handling (https://github.com/haskell-servant/servant-jquery/pull/6) * Support content-type aware combinators (but require that endpoints support JSON) * Add support for Matrix params (https://github.com/haskell-servant/servant-jquery/pull/11) diff --git a/servant-server/CHANGELOG.md b/servant-server/CHANGELOG.md index 0a75ffb0..433f9caf 100644 --- a/servant-server/CHANGELOG.md +++ b/servant-server/CHANGELOG.md @@ -1,5 +1,6 @@ 0.3 --- +* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body * Add a `RouteMismatch` constructor for arbitrary HTTP response codes (https://github.com/haskell-servant/servant-server/pull/22) * Add support for the `Patch` combinator * Support for `Accept`/`Content-type` headers and for the content-type aware combinators in *servant-0.3* diff --git a/servant/CHANGELOG.md b/servant/CHANGELOG.md index 80c864f9..92973987 100644 --- a/servant/CHANGELOG.md +++ b/servant/CHANGELOG.md @@ -1,5 +1,6 @@ 0.3 --- +* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body * Multiple content-type/accept support for all the relevant combinators * Provide *JSON*, *PlainText*, *OctetStream* and *FormUrlEncoded* content types out of the box * Type-safe link generation to API endpoints