language-thrift: Parser and pretty printer for the Thrift IDL format.

[ bsd3, language, library ] [ Propose Tags ]

This package provides a parser and pretty printer for the Thrift IDL format.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,,,,,,,,,,,,,,,, (info)
Change log
Dependencies base (>=4.7 && <5), containers (>=0.5 && <0.7), megaparsec (>=9.0 && <10.0), prettyprinter-compat-ansi-wl-pprint (>=1.0 && <2.0), scientific (>=0.3 && <0.4), semigroups (>=0.18 && <0.21), text (>=1.2), transformers [details]
License BSD-3-Clause
Author Abhinav Gupta
Maintainer Abhinav Gupta <>
Category Language
Home page
Bug tracker
Source repo head: git clone
Uploaded by abhinav at 2024-04-06T03:09:19Z
Distributions NixOS:, Stackage:
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 10502 total (55 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-04-06 [all 1 reports]

Readme for language-thrift-

[back to package description]


language-thrift provides a parser and pretty printer for the Thrift IDL format. In addition to parsing the IDL, it keeps track of Javadoc-style comments (/** ... */) and attaches them to the type, service, function, or field, above which they were added. These are retained when the document is sent through the pretty printer.

The parser uses megaparsec and the pretty printer ansi-wl-pprint. The pretty printer can produce syntax highlighted output.

Haddock-generated docs are available on Hackage and here.