1[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-docs/CHANGELOG.md)
2[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
9- Generate sample cURL requests
10 ([#1401](https://github.com/haskell-servant/servant/pull/1401/files)).
11 Breaking change: requires sample header values to be supplied with `headers`.
16### Significant changes
18- Use Capture Description if available (#1423).
23- Bump `bytestring` and `lens` dependencies.
28### Significant changes
30- Support `Fragment` combinator.
35### Significant changes
37- Add instance for ToSample NonEmpty
41- Bump "tested-with" ghc versions
42- Fix servant-docs code sample in README
48- Add NoContentVerb [#1028](https://github.com/haskell-servant/servant/issues/1028) [#1219](https://github.com/haskell-servant/servant/pull/1219) [#1228](https://github.com/haskell-servant/servant/pull/1228)
50 The `NoContent` API endpoints should now use `NoContentVerb` combinator.
51 The API type changes are usually of the kind
54 - :<|> PostNoContent '[JSON] NoContent
58 i.e. one doesn't need to specify the content-type anymore. There is no content.
60- `Capture` can be `Lenient` [#1155](https://github.com/haskell-servant/servant/issues/1155) [#1156](https://github.com/haskell-servant/servant/pull/1156)
62 You can specify a lenient capture as
65 :<|> "capture-lenient" :> Capture' '[Lenient] "foo" Int :> GET
68 which will make the capture always succeed. Handlers will be of the
69 type `Either String CapturedType`, where `Left err` represents
70 the possible parse failure.
72- *servant-docs* Merge documentation from duplicate routes [#1240](https://github.com/haskell-servant/servant/issues/1240) [#1241](https://github.com/haskell-servant/servant/pull/1241)
74 Servant supports defining the same route multiple times with different
75 content-types and result-types, but servant-docs was only documenting
76 the first of copy of such duplicated routes. It now combines the
77 documentation from all the copies.
79 Unfortunately, it is not yet possible for the documentation to specify
80 multiple status codes.
82- *servant-docs* Prevent race-conditions in testing [#1194](https://github.com/haskell-servant/servant/pull/1194)
87- Drop dependency on `control-monad-omega` in favor of `Data.Universe.Helpers` from `universe-base`.
92- Support `servant-0.15`
93 - Instances for 'Stream' and 'StreamBody'
98* Allow `servant-0.13`:
99 - Doesn't have instances for streaming.
100 - Servant.API.Modifiers extra information isn't used.
105* Export `DocAuthentication` and related lenses.
106* Make `defAction`'s documentation visible in Haddock documentation.
107* Add a markdown header for the Headers an endpoint is sensitive to.
108* Document the HTTP Method the parameters of an endpoint belong to
109 (rather than assuming `GET` for all of them).
110* Content type of sample response body is also displayed.
111* Can now customise various aspects of how the document is produced
112 using `markdownWith` and `RenderingOptions`:
113 - How many content-types for each example are shown
114 - Whether notes should be grouped together under their own header.
119* changed the type of `rqbody`.
124There are no changes. Released as a part of `servant` suite.
134* Use `throwError` instead of `throwE` in documentation
139* Support for the `HttpVersion`, `IsSecure`, `RemoteHost` and `Vault` combinators
140* Support maximum samples setting with new `DocOptions` type (used by `docsWithOptions` and `docsWith`)
141* Remove redundant second parameter of ToSample
142* Add Generic-based default implementation for `ToSample` class
143* Add more `ToSamples` instances: `Bool`, `Ordering`, tuples (up to 7), `[]`, `Maybe`, `Either`, `Const`, `ZipList` and some monoids
144* Move `toSample` out of `ToSample` class
145* Add a few helper functions to define `toSamples`
146* Remove matrix params.
147* Added support for Basic authentication
151* `Delete` now is like `Get`, `Post`, `Put`, and `Patch` and returns a response body
152* Allow for extra information to be added to the docs
153* Support content-type aware combinators of *servant-0.4*
154* Render endpoints in a canonical order (https://github.com/haskell-servant/servant-docs/pull/15)
155* Remove ToJSON superclass from ToSample
156* Split out Internal module
157* Add support for response headers
158* Allow `ToSample` to return a different type than it's arguments
159* Add Proxy argument to `ToSample`
164* Add the ability to display multiple responses, with some accompanying `Text` to describe the context in which we get the corresponding JSON.
165* Expose the `headers` lens
166* Represent an endpoint's path as `[String]` (previously `String`), fixing a corner case where the leading `/` would be missing.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list