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

[ bsd3, language, library, program ] [ Propose Tags ] [ Report a vulnerability ]
Versions [RSS] 0.2.1.0, 0.3.0.0
Change log ChangeLog.md
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
Maintainer 0xd34df00d@gmail.com
Category Language
Home page https://github.com/0xd34df00d/coformat#readme
Bug tracker https://github.com/0xd34df00d/coformat/issues
Source repo head: git clone https://github.com/0xd34df00d/coformat
Uploaded by 0xd34df00d at 2019-12-30T00:50:54Z
Distributions
Executables coformat-exe
Downloads 769 total (11 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-12-30 [all 1 reports]

Readme for coformat-0.3.0.0

[back to package description]

coformat

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.