fix ToSample instance and update changelogs
This commit is contained in:
parent
10a6020ca2
commit
95abfc4090
6 changed files with 7 additions and 7 deletions
servant-client
servant-docs
servant-jquery
servant-server
servant
|
@ -1,5 +1,6 @@
|
||||||
0.3
|
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
|
* Support content-type aware combinators and `Accept`/`Content-type` headers
|
||||||
* Added a lot of tests
|
* Added a lot of tests
|
||||||
* Support multiple concurrent threads
|
* Support multiple concurrent threads
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
0.4
|
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
|
* Allow for extra information to be added to the docs
|
||||||
* Support content-type aware combinators of *servant-0.3*
|
* Support content-type aware combinators of *servant-0.3*
|
||||||
* Render endpoints in a canonical order (https://github.com/haskell-servant/servant-docs/pull/15)
|
* Render endpoints in a canonical order (https://github.com/haskell-servant/servant-docs/pull/15)
|
||||||
|
|
|
@ -53,13 +53,8 @@ instance ToParam (MatrixParam "lang" String) where
|
||||||
"Get the greeting message selected language. Default is en."
|
"Get the greeting message selected language. Default is en."
|
||||||
Normal
|
Normal
|
||||||
|
|
||||||
instance ToSample () Greet where
|
instance ToSample () () where
|
||||||
toSample _ = Just $ Greet "Hello, haskeller!"
|
toSample _ = Just ()
|
||||||
|
|
||||||
toSamples _ =
|
|
||||||
[ ("If you use ?capital=true", Greet "HELLO, HASKELLER")
|
|
||||||
, ("If you use ?capital=false", Greet "Hello, haskeller")
|
|
||||||
]
|
|
||||||
|
|
||||||
instance ToSample Greet Greet where
|
instance ToSample Greet Greet where
|
||||||
toSample _ = Just $ Greet "Hello, haskeller!"
|
toSample _ = Just $ Greet "Hello, haskeller!"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
0.3
|
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)
|
* 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)
|
* 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)
|
* Add support for Matrix params (https://github.com/haskell-servant/servant-jquery/pull/11)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
0.3
|
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 a `RouteMismatch` constructor for arbitrary HTTP response codes (https://github.com/haskell-servant/servant-server/pull/22)
|
||||||
* Add support for the `Patch` combinator
|
* Add support for the `Patch` combinator
|
||||||
* Support for `Accept`/`Content-type` headers and for the content-type aware combinators in *servant-0.3*
|
* Support for `Accept`/`Content-type` headers and for the content-type aware combinators in *servant-0.3*
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
0.3
|
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
|
* Multiple content-type/accept support for all the relevant combinators
|
||||||
* Provide *JSON*, *PlainText*, *OctetStream* and *FormUrlEncoded* content types out of the box
|
* Provide *JSON*, *PlainText*, *OctetStream* and *FormUrlEncoded* content types out of the box
|
||||||
* Type-safe link generation to API endpoints
|
* Type-safe link generation to API endpoints
|
||||||
|
|
Loading…
Add table
Reference in a new issue