Lennart Spitzner
5895f954bd
Remove dependency on neat-interpolation
2020-02-04 16:14:38 +01:00
Lennart Spitzner
03e2b62c24
Introduce flag to disable formatting per-module
...
New inline config `-- brittany-disable` that parses but
ignores the current module. Useful if both brittany
and ghc-exactprint bug out for some syntax.
2020-01-23 13:56:25 +01:00
Lennart Spitzner
6c3d9c57c5
Comment the single-line record decl config flag out
2019-12-09 11:22:43 -07:00
Lennart Spitzner
5a49277eba
Improve data decl layouting
...
- Fix bug in BackendUtil/lowest level of brittany about
alignment being ignored after a comment,
- Properly layout large (more than single-line) types in
record fields and in data decl rhs arguments,
- Properly layout data decl constructors with large "heads"
(forall, constraints),
- Add a config flag to control single-line layout of record
definition,
2019-12-09 11:20:28 -07:00
Lennart Spitzner
f87c0c64b8
Implement experimental semicolon-into-newlines feature
2019-12-04 13:55:41 +01:00
Lennart Spitzner
698356a880
Increase the timeout of one of the perf-tests
2019-08-28 14:23:33 +02:00
Lennart Spitzner
42f566b94a
Support QuasiQuotation-splices
2019-06-12 09:17:21 +02:00
Lennart Spitzner
a237e591b2
Implement `--obfuscate`
...
Support replacing all (non-keyword) identifiers with
randomly generated characters
2018-04-24 00:47:50 +02:00
Lennart Spitzner
18704e403f
Fix inline disabling of brittany
2018-04-19 17:09:10 +02:00
Lennart Spitzner
8de56ba11d
Support import column vs import-as column
2018-03-21 01:02:44 +01:00
Lennart Spitzner
833ac95fd7
Add two config options to control preamble layouting
2018-03-12 17:11:25 +01:00
Lennart Spitzner
37e355fea5
Support hanging type signature config option
2017-12-28 21:38:31 +01:00
Lennart Spitzner
5a82968a7b
Add sub-config-alternative default to lib interface
...
i.e. `forwardOptionsSyntaxExtsEnabled`
2017-07-04 23:26:13 +02:00
Lennart Spitzner
3784a0123b
Refactor exposed function (now parsePrintModule)
...
- Rename parsePrintModule -> parsePrintModuleTests
- Rename pureModuleTransform -> parsePrintModule
- Change argument type from (CConfig Option) to Config
- Expose CConfig type fully
2017-06-03 18:23:03 +02:00
Lennart Spitzner
f350113f7f
Refactor all modules: +Internal; Add public Brittany module
2017-05-22 21:25:08 +02:00
Lennart Spitzner
8f1e366f9c
Change config file structure; Add config version tag
2017-05-21 16:48:05 +02:00
Lennart Spitzner
6448ee780a
Restrict aggressive horizontal alignment ( fixes #21 )
...
- Add config values:
_lconfig_alignmentLimit for roughly "max spaces inserted"
_lconfig_alignmentBreakOnMultiline for stopping
alignment after non-singleline-items
2017-05-17 21:34:49 +02:00
Lennart Spitzner
575d530188
Use ExactPrintFallback for unknown constructs
...
fixes #11
2017-03-06 12:45:19 +01:00
Lennart Spitzner
bc70eb07e8
Change config setup(!), Refactor, Update deps
...
- config now uses foo_bar instead of _foo_bar;
- config now will accept missing keys;
- use latest butcher version;
- improve identity testing by moving into separate file.
2017-01-31 18:43:16 +01:00
Lennart Spitzner
cb93a6903c
Fix horizontal alignment issue; Add testcases
2016-09-04 14:24:19 +02:00
Lennart Spitzner
9d4192df00
Add another TODO testcase
2016-09-03 23:02:49 +02:00
Lennart Spitzner
b03996e401
Apply brittany on parts of its source; Add comments
2016-09-03 23:02:32 +02:00
Lennart Spitzner
3809ba9ef0
Fix some type sig layouting minor issue
2016-09-03 21:50:31 +02:00
Lennart Spitzner
d6cf33c3e0
Add testcase for not-yet-fixed pattern problem
2016-09-03 21:36:06 +02:00
Lennart Spitzner
371fad303d
Improve column aligning; Add config for aligning
2016-09-02 00:38:56 +02:00
Lennart Spitzner
d0fcfc563e
Fix if-then-else comment placement issue
2016-08-18 01:14:11 +02:00
Lennart Spitzner
e67855fd98
Fix list comprehension comment placement issue
2016-08-18 00:59:12 +02:00
Lennart Spitzner
b045c37bbd
Fix two column layouting bugs
2016-08-12 15:01:15 +02:00
Lennart Spitzner
46ad20e8f9
Add comment-aware alternative filtering (type sig)
2016-08-12 15:01:15 +02:00
Lennart Spitzner
55709c9b17
Fix do let comment indentation problems
2016-08-12 15:01:14 +02:00
Lennart Spitzner
1a70e4d949
Support --ghc-options; Rework config internals
2016-08-08 17:59:29 +02:00
Lennart Spitzner
a1e012eb40
Fix testcases/Add regression tests for latest fixes
2016-08-06 14:16:56 +02:00
Lennart Spitzner
e453c292a3
Add some few testsuite cases
2016-08-03 22:13:59 +02:00
Lennart Spitzner
60d1bc5176
Squash previous history
2016-07-30 15:22:07 +02:00