Taylor Fausak
1e7a94e72e
Inline `prelude.inc`
2021-11-06 17:12:55 +00:00
Taylor Fausak
bfdb28010a
Restore custom `Show` instance for `PPTextWrapper`
2021-11-04 23:05:43 +00:00
Taylor Fausak
515595b432
Append final newline
2021-10-30 16:28:34 +00:00
Joe Hermaszewski
9efed95d50
Add tests for import sorting
2020-11-20 23:03:59 +08:00
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
c367b1017b
Fixup src-literatetests/Main formatting
2019-12-09 11:17:32 -07:00
Lennart Spitzner
54f34344b3
Implement #min-ghc keyword for test script
2019-12-09 11:17:32 -07:00
Lennart Spitzner
f87c0c64b8
Implement experimental semicolon-into-newlines feature
2019-12-04 13:55:41 +01:00
Lennart Spitzner
42f566b94a
Support QuasiQuotation-splices
2019-06-12 09:17:21 +02:00
Lennart Spitzner
11dc30fbe1
Fix travis setup once more
2018-10-13 23:57:37 +02:00
Sergey Vinokurov
9d7cecaa92
Run tests in prallel
2018-09-17 23:54:56 +01:00
Lennart Spitzner
601dd05be6
Change test file name
2018-05-01 21:45:31 +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
696f72d336
Fixup last two commits (tests were effectively disabled
...
- re-enable tests
- un-break tests by fixing the alignment code behaviour
2018-04-24 00:38:40 +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
Evan Rutledge Borden
3bbf81baab
Add literate tests for context free formatting
...
Left indent combined with no columnized alignment represents a context
free formatting style for brittany. These tests allow this format to be
tested until inline formatting tools are available to make these files
less redundant.
2017-11-27 18:12:19 +01:00
Lennart Spitzner
a0112524aa
Split up littests input into multiple files
...
*.blt instead of just tests.blt
yay for unix-style for ordering the inputs "15-regression.blt"
2017-10-02 20:53:56 +02: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
acbaba0782
Omit output syntax test for fix-point tests
2017-04-12 14:53:47 +02:00
Lennart Spitzner
93611b9a1c
Apply brittany
2017-01-31 18:44:39 +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