api-tools: DSL for generating API boilerplate and docs

[ bsd3, cloud, distributed-computing, library, network, program, web ] [ Propose Tags ] [ Report a vulnerability ]

api-tools provides a compact DSL for describing an API. It uses Template Haskell to generate the corresponding data types and assorted tools for working with it, including Aeson and QuickCheck instances for converting between JSON and the generated types and writing unit tests.

Flags

Automatic Flags
NameDescriptionDefault
use-attoparsec-aeson

Depend on Data.Aeson.Parser from attoparsec-aeson

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.2, 0.3, 0.4, 0.4.0.1, 0.5, 0.5.1, 0.5.2, 0.8.0.1, 0.8.0.2, 0.9.0.0, 0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1, 0.11.0.0
Change log changelog
Dependencies aeson (>=0.10 && <1.6 || >=2.0 && <2.4), aeson-pretty (>=0.1 && <0.9), api-tools, array (>=0.4 && <0.6), attoparsec (>=0.10.4 && <0.15), attoparsec-aeson (>=2.1 && <2.3), base (>=4.9 && <5), base16-bytestring (>=0.1 && <1.1), base64-bytestring (>=1.0 && <1.3), bytestring (>=0.9 && <0.13), case-insensitive (>=1.0 && <1.3), cborg (>=0.1.1.0 && <0.3), containers (>=0.5 && <0.9), deepseq (>=1.1 && <1.7), lens (>=3.8.7 && <5.4), QuickCheck (>=2.5.1 && <2.19), regex-base (>=0.93 && <0.95), regex-tdfa (>=1.1.0 && <1.4), safe (>=0.3.3 && <0.4), safecopy (>=0.8.1 && <0.11), scientific (>=0.3 && <0.4), serialise (>=0.1.0.0 && <0.3), template-haskell (>=2.7 && <2.25), text (>=0.11.3 && <2.2), time (>=1.5.0 && <1.17), unordered-containers (>=0.2.3.0 && <0.3), vector (>=0.10.0.1 && <0.14) [details]
Tested with ghc ==9.6.7, ghc ==9.8.4, ghc ==9.10.3, ghc ==9.12.4, ghc ==9.14.1
License BSD-3-Clause
Copyright (c) Iris Connect 2013-2026
Author Chris Dornan <chrisd@irisconnect.co.uk> and Adam Gundry <adam@well-typed.com>
Maintainer Adam Gundry <adam@well-typed.com>
Uploaded by AdamGundry at 2026-08-20T12:03:01Z
Category Network, Web, Cloud, Distributed Computing
Home page http://github.com/iconnect/api-tools
Source repo head: git clone https://github.com/iconnect/api-tools.git
Distributions
Reverse Dependencies 3 direct, 0 indirect [details]
Executables perf-test, migration-tool
Downloads 9391 total (45 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-08-20 [all 1 reports]