on master help sign in
Set some goals.
commitec58113c30d00e6f1bc9ebe039d13097085f7d9f authorFacundo Domínguez <facundo.dominguez@tweag.io> dateFri 14 Dec 2018, 18:13 (8 years ago) parentb9b9fc4
1 file changed+8
DESIGN.md+8
DESIGN.md+8
@@ -19,6 +19,14 @@
1919This document describes design of a new formatter for Haskell source code.
2020It also includes recommendations for future implementers.
2121
22+We set for the following goals (mostly taken from
23+[brittany](https://github.com/lspitzner/brittany)):
24+* Preserve the meaning of the formatted functions;
25+* Make reasonable use of screen space;
26+* Use linear space and computation time on the size of the input;
27+* Preserve comments;
28+* Be idempotent.
29+
2230## Analysis of the existing solutions
2331
2432In order to design a new formatter we need to study the existing solutions