| 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 05:07:46 GMT
X-Served-By: cache-dfw-kdfw8210106-DFW, cache-bom-vanm7210093-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768626466.186221,VS0,VE380
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
servant-nix: Servant Nix content-type
[Skip to Readme]
servant-nix: Servant Nix content-type
Servant Nix bindings.
Provides MineRender and MimeUnrender instances.
So you can accept and return Nix expressions, with the help
of the hnix library.
[Skip to Readme]
Downloads
- servant-nix-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 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.8 && <5), bytestring (>=0.10.4.0 && <0.11), hnix (>=0.5 && <0.6), http-media (>=0.7 && <0.8), servant (>=0.13 && <0.15), text (>=1.2.3.0 && <1.3) [details] |
| Tested with | ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.3 |
| License | BSD-3-Clause |
| Copyright | 2018 Servant Contributors |
| Author | Servant Contributors |
| Maintainer | haskell-servant-maintainers@googlegroups.com |
| Uploaded | by AlpMestanogullari at 2018-06-13T20:11:58Z |
| Revised | Revision 1 made by AlpMestanogullari at 2018-06-19T10:53:47Z |
| Category | Web, Servant, Nix |
| Home page | https://haskell-servant.readthedocs.org/ |
| Bug tracker | https://github.com/haskell-servant/servant-nix/issues |
| Source repo | head: git clone https://github.com/haskell-servant/servant-nix.git |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 733 total (6 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-06-13 [all 1 reports] |
Readme for servant-nix-0.1
[back to package description]servant-nix
Use Nix expressions as request or response bodies in servant applications

Example
Run the example:
cabal new-test
It performs a simple roundtrip test for a fixed Nix expression
which is a list of numbers. See the code in example/Main.hs.