on master help sign in
fix ToSample instance and update changelogs
95abfc4Brandon Martin
servant-client/CHANGELOG.md+1
@@ -1,5 +1,6 @@
10.3
10.3
2---
2---
3+* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body
3* Support content-type aware combinators and `Accept`/`Content-type` headers
4* Support content-type aware combinators and `Accept`/`Content-type` headers
4* Added a lot of tests
5* Added a lot of tests
5* Support multiple concurrent threads
6* Support multiple concurrent threads
servant-docs/CHANGELOG.md+1
@@ -1,5 +1,6 @@
10.4
10.4
2---
2---
3+* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body
3* Allow for extra information to be added to the docs
4* Allow for extra information to be added to the docs
4* Support content-type aware combinators of *servant-0.3*
5* Support content-type aware combinators of *servant-0.3*
5* Render endpoints in a canonical order (https://github.com/haskell-servant/servant-docs/pull/15)
6* 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
53 "Get the greeting message selected language. Default is en."
53 "Get the greeting message selected language. Default is en."
54 Normal
54 Normal
55
55
56−instance ToSample () Greet where
56+instance ToSample () () where
57− toSample _ = Just $ Greet "Hello, haskeller!"
57+ toSample _ = Just ()
58−
59− toSamples _ =
60− [ ("If you use ?capital=true", Greet "HELLO, HASKELLER")
61− , ("If you use ?capital=false", Greet "Hello, haskeller")
62− ]
63
58
64instance ToSample Greet Greet where
59instance ToSample Greet Greet where
65 toSample _ = Just $ Greet "Hello, haskeller!"
60 toSample _ = Just $ Greet "Hello, haskeller!"
servant-jquery/CHANGELOG.md+1
@@ -1,5 +1,6 @@
10.3
10.3
2---
2---
3+* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body
3* Extend `HeaderArg` to support more advanced HTTP header handling (https://github.com/haskell-servant/servant-jquery/pull/6)
4* Extend `HeaderArg` to support more advanced HTTP header handling (https://github.com/haskell-servant/servant-jquery/pull/6)
4* Support content-type aware combinators (but require that endpoints support JSON)
5* Support content-type aware combinators (but require that endpoints support JSON)
5* Add support for Matrix params (https://github.com/haskell-servant/servant-jquery/pull/11)
6* Add support for Matrix params (https://github.com/haskell-servant/servant-jquery/pull/11)
servant-server/CHANGELOG.md+1
@@ -1,5 +1,6 @@
10.3
10.3
2---
2---
3+* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body
3* Add a `RouteMismatch` constructor for arbitrary HTTP response codes (https://github.com/haskell-servant/servant-server/pull/22)
4* Add a `RouteMismatch` constructor for arbitrary HTTP response codes (https://github.com/haskell-servant/servant-server/pull/22)
4* Add support for the `Patch` combinator
5* Add support for the `Patch` combinator
5* Support for `Accept`/`Content-type` headers and for the content-type aware combinators in *servant-0.3*
6* 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 @@
10.3
10.3
2---
2---
3+* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body
3* Multiple content-type/accept support for all the relevant combinators
4* Multiple content-type/accept support for all the relevant combinators
4* Provide *JSON*, *PlainText*, *OctetStream* and *FormUrlEncoded* content types out of the box
5* Provide *JSON*, *PlainText*, *OctetStream* and *FormUrlEncoded* content types out of the box
5* Type-safe link generation to API endpoints
6* Type-safe link generation to API endpoints