on master help sign in
Merge pull request #8 from tweag/fd/goals

Set some goals.

commit6ea0b524ab8fc4cf1f58ab9d68d27c8e8673bea2 authorMark Karpov <markkarpov92@gmail.com> dateSat 15 Dec 2018, 20:18 (8 years ago) parenta065f54ec58113
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