Commit Graph

16 Commits

Author SHA1 Message Date
mrkkrp
d74b211f1e
A couple of minor tweaks (command line options parser) 2019-08-28 16:21:43 +02:00
mrkkrp
3a093e65c8 Support formatting multiple files at once 2019-08-16 23:06:05 +02:00
Utku Demir
da0b3b8565 Implement the --check-idempotency flag 2019-08-16 22:21:20 +02:00
mrkkrp
c5b9fa1168 Add an option to tolerate CPP pragmas 2019-07-14 13:14:55 +02:00
waddlaw
e663070623 An option to display “manual” extensions 2019-07-13 21:42:06 +02:00
mrkkrp
c201862f11 Drop ‘yaml’ configuration 2019-07-07 13:53:59 +02:00
Tuncer Ayaz
cad7e40ae5 Allow reading from stdin 2019-07-07 12:25:22 +02:00
Basile Henry
42c91987bf Use explicit error code in check mode 2019-06-19 21:28:22 +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
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
b2e05d6f65 Throw exception when CPP is enabled (plus some refactoring) 2019-02-28 22:22:10 +01:00
mrkkrp
120b4caefc Implement handling of comments and printing of module headers 2019-02-21 18:15:27 +01:00
mrkkrp
fcd35a1faa Implement pretty printing combinators 2019-01-28 19:26:13 +01:00
mrkkrp
02c6a58f27
Implement basic parser for fooling around 2018-12-08 17:34:26 +07:00
mrkkrp
dc6605107a
Initial commit 2018-11-25 20:51:22 +07:00