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]
Versions [faq],,,,,,,,,,,,,,,,,, (info)
Change log
Dependencies ansi-wl-pprint (==0.6.*), base (>=4.7 && <4.9), lens (>=4.0 && <5.0), parsers (==0.12.*), text (>=1.2), transformers, trifecta (==1.5.*), wl-pprint (>=1.1) [details]
License BSD-3-Clause
Author Abhinav Gupta
Maintainer Abhinav Gupta <>
Category Language
Home page
Source repo head: git clone git://
Uploaded by abhinav at Wed Jan 27 08:22:38 UTC 2016
Distributions NixOS:
Downloads 4606 total (52 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-11-28 [all 2 reports]


  • Language
    • Thrift
      • Language.Thrift.Parser
        • Language.Thrift.Parser.Trifecta
      • Language.Thrift.Pretty
        • Language.Thrift.Pretty.ANSI
      • Language.Thrift.Types


Maintainer's Corner

For package maintainers and hackage trustees

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 parsers to allow plugging in the underlying parser. A default trifecta based parser is provided.

The pretty printer supports both, wl-pprint and ansi-wl-pprint. The ansi-wl-pprint-based pretty printer produces colored output.

Haddock-generated docs are available on Hackage and here.