coformat: Generate clang-format config based on some existing code base

[ bsd3, language, library, program ] [ Propose Tags ]

Please see the README on GitHub at

[Skip to Readme]
Versions [RSS] [faq],
Change log
Dependencies aeson, async, async-pool, base (>=4.7 && <5), bytestring, can-i-haz, coformat, command, command-qq, containers, dom-selector, extra, fast-logger, generic-data, hashable, html-conduit, interpolate, lens, lens-aeson, monad-logger, mtl, optparse-generic, scientific, temporary, text, unordered-containers, xml-conduit, yaml [details]
License BSD-3-Clause
Copyright 2019 Georg Rudoy
Author Georg Rudoy
Category Language
Home page
Bug tracker
Source repo head: git clone
Uploaded by 0xd34df00d at 2019-12-30T00:50:54Z
Distributions NixOS:
Executables coformat-exe
Downloads 534 total (13 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-12-30 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees


Readme for coformat-

[back to package description]


Code style formatters take a style description and format a code base accordingly.

coformat is dual to them: it takes a code base and produces a code style description for it! This is achieved by a cunning combination of state-of-the-art type system features (DataKinds, RankNTypes and GADTs, among others) and modern machine learning techniques (there is a numerical optimization step after all).

More seriously, this project only supports clang-format for now, but plugging other formatters (perhaps for other languages) should be trivial enough, provided there is an easy way to get the list of available options and their possible values.