| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 07:10:43 GMT
X-Served-By: cache-dfw-kdfw8210068-DFW, cache-bom-vanm7210082-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768633844.551131,VS0,VE368
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
servant-yaml: Servant support for yaml
servant-yaml: Servant support for yaml
Downloads
- servant-yaml-0.1.0.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1 |
|---|---|
| Dependencies | base (>=4.9 && <4.14), bytestring (>=0.10.8.1 && <0.11), http-media (>=0.7.1.3 && <0.9), servant (>=0.15 && <0.18), yaml (>=0.11 && <0.12) [details] |
| Tested with | ghc ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.1 |
| License | BSD-3-Clause |
| Author | Oleg Grenrus <oleg.grenrus@iki.fi> |
| Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
| Uploaded | by phadej at 2018-11-13T23:31:36Z |
| Revised | Revision 4 made by phadej at 2020-01-23T20:11:14Z |
| Category | Web, Servant |
| Home page | https://github.com/haskell-servant/servant-yaml#readme |
| Bug tracker | https://github.com/haskell-servant/servant-yaml/issues |
| Source repo | head: git clone https://github.com/haskell-servant/servant-yaml |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 4550 total (8 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2018-11-13 [all 1 reports] |
Readme for servant-yaml-0.1.0.1
[back to package description]servant-yaml
Servant support for yaml
Example
Check example/Main.hs for an example:
curl -i -H "Content-Type: application/x-yaml" -H "Accept: application/x-yaml" -X POST --data-binary @example.yaml 'localhost:8000/foo'
$ curl -i localhost:8000
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Date: Sun, 01 Nov 2015 08:10:01 GMT
Server: Warp/3.0.13.1
Content-Type: application/x-yaml
foo: 42
bar: Yaml!
$ curl -i -H "Accept: application/json" localhost:8000
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Date: Sun, 01 Nov 2015 08:14:08 GMT
Server: Warp/3.0.13.1
Content-Type: application/json
{"foo":42,"bar":"Yaml!"
$ cat example.yaml
bar: "JSON?"
foo: 1337
$ curl -i -H "Content-Type: application/x-yaml" -H "Accept: application/x-yaml" -X POST --data-binary @example.yaml 'localhost:8000/foo'
HTTP/1.1 201 Created
Transfer-Encoding: chunked
Date: Sun, 01 Nov 2015 08:15:21 GMT
Server: Warp/3.0.13.1
Content-Type: application/x-yaml
foo: 1337
bar: JSON?