mrkkrp
09afebbd9c
Implement rendering of simplest value-level constructs
2019-05-18 18:47:53 +02:00
mrkkrp
ae3ea9b5b6
Mention minimal diffs in the readme
...
[skip ci]
2019-05-17 12:18:01 +02:00
mrkkrp
3553fc35d0
Implement signature declarations
...
This implements not everything, but the most common case: simple top-level
declarations for functions.
2019-05-16 19:03:14 +02:00
mrkkrp
4e087ff0c3
Fix a typo
...
[skip ci]
2019-05-16 18:45:45 +02:00
Mark Karpov
50fd9c7759
Various fixes, thanks to Facundo
...
[skip ci]
2019-05-10 19:00:43 +02:00
mrkkrp
5dcee957e4
Improve descriptions of rendering combinators
2019-05-10 19:00:43 +02:00
mrkkrp
0b7d784cd6
Update the readme file
...
[skip ci]
2019-05-10 19:00:43 +02:00
mrkkrp
759c2c6854
Fix ‘data-files’ field in the Cabal file
...
Apparently the situation here is quite broken because we need to list all
sub-directories explicitly, here is a Cabal issue:
https://github.com/haskell/cabal/issues/6043
2019-05-10 19:00:43 +02:00
mrkkrp
0d558f1cb6
Various minor corrections to the docs and code
2019-05-10 19:00:43 +02:00
mrkkrp
b9c8b64947
Implement more precise comment placement without ‘ghc-exactprint’
...
‘ghc-exactprint’ (or perhaps lexer of GHC itself) does a fairly poor job at
associating comments with elements of AST. In many cases the result is not
what you'd expect. We ran into insuperable problems with that to the effect
that correct comment placement were impossible.
The new approach is to exploit the raw position information provided by the
GHC lexer, that is, spans attached to AST elements and comments. This
allowed us to place comments in output in a very precise and satisfactory
fashion.
2019-05-08 22:03:21 +02:00
mrkkrp
5959c83480
Fix a failing test
2019-05-08 22:03:21 +02:00
mrkkrp
00b08eeaff
Implement rendering of data type declarations
2019-05-08 22:03:21 +02:00
mrkkrp
e01287aa24
Implement rendering of type synonyms
2019-04-09 22:45:23 +02:00
mrkkrp
576f943e7f
Implement rendering of types and type families declarations
2019-04-07 19:33:28 +02:00
mrkkrp
b6d49bb625
Implement pretty-printing of imports
2019-03-21 14:45:06 +01:00
mrkkrp
6f169f2969
Include debugging option in ‘Config’
2019-02-28 22:22:10 +01:00
mrkkrp
2f73bae977
Implement CLI for the application
2019-02-28 22:22:10 +01:00
mrkkrp
53285db455
Make sanity checking optional
2019-02-28 22:22:10 +01:00
mrkkrp
b2e05d6f65
Throw exception when CPP is enabled (plus some refactoring)
2019-02-28 22:22:10 +01:00
mrkkrp
bf22720b61
Implement diffing of comment annotations
2019-02-21 23:30:29 +01:00
mrkkrp
41a54caca1
Implement diffing of ASTs
2019-02-21 23:30:29 +01:00
mrkkrp
120b4caefc
Implement handling of comments and printing of module headers
2019-02-21 18:15:27 +01:00
mrkkrp
f1d07ca9ce
Minor corrections to the design document
2019-02-14 22:12:13 +01:00
mrkkrp
fcd35a1faa
Implement pretty printing combinators
2019-01-28 19:26:13 +01:00
Mathieu Boespflug
beaa52191d
Merge pull request #16 from tweag/fd/noconfig
...
Support no configuration.
2019-01-11 23:04:24 +02:00
Facundo Domínguez
66b22d7d03
Support no configuration.
2019-01-10 14:20:05 -03:00
Facundo Domínguez
71d89ae1d0
Merge pull request #15 from tweag/fd/comment-examples
...
Examples of comments
2019-01-10 14:10:03 -03:00
Facundo Domínguez
de6f3b06e9
Add examples of comments.
2019-01-08 12:37:42 -03:00
Facundo Domínguez
3312412476
Tighten examples.
2019-01-08 12:24:39 -03:00
Facundo Domínguez
410d2ec4bb
Update section on Hindent. ( #13 )
2019-01-05 18:26:37 +07:00
Facundo Domínguez
ef1c8d3262
Update analysis for contributions. ( #14 )
2019-01-05 18:25:50 +07:00
Facundo Domínguez
fd1c88112b
Style edits.
2019-01-04 12:32:43 -03:00
Facundo Domínguez
8202297067
Merge pull request #12 from tweag/fd/brittany-section
...
Tighten Brittany's section.
2019-01-04 10:44:15 -03:00
Facundo Domínguez
d9171cc7b9
Style edits.
2019-01-04 10:42:23 -03:00
Facundo Domínguez
b4bb9a4f1a
Tighten Brittany's section.
2019-01-04 10:32:35 -03:00
Mathieu Boespflug
b2e3061ba9
Merge pull request #11 from tweag/incorporate-mathieu-design
...
Incorporate Mathieu's design
2019-01-03 22:50:21 +02:00
mrkkrp
304671e86b
Incorporate Mathieu's design
2019-01-03 23:02:04 +07:00
Mark Karpov
cfc8dbf328
Improve analysis of existing solutions ( #10 )
2019-01-03 23:00:56 +07:00
Facundo Domínguez
690d7e88ed
Simplify the failing CPP example
2018-12-20 08:44:19 -03:00
Facundo Domínguez
f0aea980b3
Add formatting examples for discussion.
2018-12-18 11:32:46 -03:00
Facundo Domínguez
84cf555707
Explain more of the rationale for excluding CPP. ( #7 )
...
* Explain more of the rationale for excluding CPP.
* Change the CPP example to change the meaning. Use hindent.
* Fix a typo
2018-12-15 20:25:26 +07:00
Mark Karpov
6ea0b524ab
Merge pull request #8 from tweag/fd/goals
...
Set some goals.
2018-12-15 20:18:22 +07:00
Facundo Domínguez
ec58113c30
Set some goals.
2018-12-14 18:13:58 -03:00
Mark Karpov
a065f54bce
Merge pull request #5 from tweag/fd/self-check-design
...
Mention the self-check in the DESIGN
2018-12-12 12:46:50 +07:00
Facundo Domínguez
b9b9fc4113
Fix grammar and minor edits in CPP section.
2018-12-11 18:04:17 -03:00
Facundo Domínguez
8da9c0b803
Mention the self-check and edit testing section.
2018-12-11 17:58:20 -03:00
Mark Karpov
1ab294827d
Merge pull request #6 from tweag/fd/cpp-design
...
Edit opening of the CPP section in the DESIGN document
2018-12-12 03:26:27 +07:00
Facundo Domínguez
bf027f0d13
Edit opening of the CPP section in the DESIGN document
2018-12-11 13:52:36 -03:00
mrkkrp
bc2b919792
A couple more sentences about Brittany
2018-12-10 23:00:04 +07:00
mrkkrp
b5e26f8b6f
Mention ‘Outputable’ and ‘SDoc’ in the section about pretty printing
...
[skip ci]
2018-12-08 18:13:13 +07:00