Lennart Spitzner
a7e4bdc168
Fix #16 ; Improve layouting in two cases; Add comments
...
- the #16 fix is a one-liner:
Throw `nub` at spacings before pruning.
- Expr/OpApp layouting: Force single-line for children in
the params-in-multiple-lines-right-of-the-function case.
- Expr/HsIf layouting: Insert a SetBaseY to prevent
"then"/"else" being placed left of "if".
2017-03-16 23:02:11 +01:00
Lennart Spitzner
19a05d01c4
Add more documentation to BriDoc api
2017-03-08 17:33:56 +01:00
Lennart Spitzner
109163fc4d
Remove traceShow statement
...
fixes #15
2017-03-08 14:55:02 +01:00
Lennart Spitzner
7dc6c525eb
Fix minor layouting issue with long guards
...
(see test multiple-clauses-4)
2017-03-07 21:44:28 +01:00
Lennart Spitzner
00c7384d20
Fix config printing (config file generation)
2017-03-07 21:14:41 +01:00
Lennart Spitzner
ed10137174
Add documentation around the BriDoc type/api
2017-03-06 20:49:08 +01:00
Lennart Spitzner
cea81d5369
Add indentation to the paragraphs inserted in patterns
...
Ugly, but fixes #6 . Ugly still better than non-valid-haskell result.
2017-03-06 16:56:38 +01:00
Lennart Spitzner
8d163eb099
Improve layouting for equations with multiple clauses
...
e.g.
func x | x = simple expression
| otherwise = 0
This fixes part of #7
2017-03-06 16:03:47 +01:00
Lennart Spitzner
df422ffa5f
Refactor/Cleanup layoutPatternBindFinal
2017-03-06 15:55:12 +01:00
Lennart Spitzner
af38c547e5
Merge pull request #13 from lspitzner/stackage-lts-8.4
...
Upgrade to Stackage LTS 8.4
2017-03-06 15:33:54 +01:00
Taylor Fausak
2af4b32ce2
Upgrade to Stackage LTS 8.4
2017-03-06 08:21:17 -06:00
Lennart Spitzner
bae75182d7
README.md: Fix mentioned config keys
2017-03-06 13:20:26 +01:00
Lennart Spitzner
71d7abc007
Fix config for idemtests (fixup for config setup change)
2017-03-06 12:51:37 +01:00
Lennart Spitzner
575d530188
Use ExactPrintFallback for unknown constructs
...
fixes #11
2017-03-06 12:45:19 +01:00
Lennart Spitzner
0a907c5594
Add some pending issues testcases
2017-03-01 22:04:41 +01:00
Lennart Spitzner
9421587da9
Merge pull request #8 from tuncer/directory-bound
...
Fix build by bumping directory upper bound
2017-02-28 00:26:19 +01:00
Tuncer Ayaz
94e0ab1d5a
Fix build by bumping directory upper bound
2017-02-11 22:45:39 +01: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
Lennart Spitzner
508780466c
Adapt for butcher-0.2.0.0
2016-10-01 19:06:55 +02:00
Lennart Spitzner
23936d7522
Write ChangeLog.md
2016-09-06 15:55:42 +02:00
Lennart Spitzner
eda83416b4
Bump to 0.7.1.0
2016-09-06 15:29:13 +02:00
Lennart Spitzner
3ba7354336
stack.yaml: Change urls from git@ to https://
2016-09-06 15:29:13 +02:00
Lennart Spitzner
1b7576dcd1
Fix --ghc-options handling
2016-09-06 15:29:13 +02:00
Lennart Spitzner
65fee7694d
Add commandline param for input (without --input)
2016-09-06 15:29:13 +02:00
Lennart Spitzner
9f1215b2ed
stack.yaml: Update butcher dependency SHA1
2016-09-06 15:29:13 +02:00
Lennart Spitzner
b5f4f077ea
Update README.md: building via stack
2016-09-05 00:09:24 +02:00
Lennart Spitzner
2b2fdb176f
Merge pull request #3 from tfausak/patch-1
...
Build with Stack
2016-09-04 22:46:22 +02:00
Lennart Spitzner
e83b4c94db
Showcase.md: Update to hindent-5.2.1 results; Add haskell-formatter output
2016-09-04 22:20:49 +02:00
Taylor Fausak
66b0836220
Build with Stack
2016-09-04 14:50:58 -05:00
Lennart Spitzner
eead525c16
Bump to 0.7.0.0
2016-09-04 14:24:19 +02:00
Lennart Spitzner
94651934b4
Update --help output
2016-09-04 14:24:19 +02:00
Lennart Spitzner
7792cd77bf
Minor fixes to brittany.cabal
2016-09-04 14:24:19 +02:00
Lennart Spitzner
cb93a6903c
Fix horizontal alignment issue; Add testcases
2016-09-04 14:24:19 +02:00
Lennart Spitzner
a29836d09c
Refactor module structure; Clean up imports
2016-09-04 00:24:20 +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
48b2057d84
Improve horizontal alignments significantly (patterns)
2016-09-03 21:32:18 +02:00
Lennart Spitzner
d3b7e28c56
Update README.md
2016-09-02 00:38:57 +02:00
Lennart Spitzner
fc47372005
Restore aligning on non-function bindings
2016-09-02 00:38:56 +02:00
Lennart Spitzner
371fad303d
Improve column aligning; Add config for aligning
2016-09-02 00:38:56 +02:00
Lennart Spitzner
395fe02644
Stop aligning patterns for different functions
2016-09-02 00:06:49 +02:00
Lennart Spitzner
8218b6e199
Fix tuple type multiline layouting
2016-09-01 15:19:56 +02:00
Lennart Spitzner
40509dc3f0
Fix comment omission on type vars and qual type
2016-09-01 14:37:17 +02:00
Lennart Spitzner
fedfeaaecd
Improve HsLam and OpApp layouting
2016-09-01 13:49:30 +02:00
Lennart Spitzner
8277e85187
Fix NonBottom/setBaseY getSpacing(s) interaction
...
- Rename NonBottom -> Always
2016-09-01 12:35:11 +02:00
Lennart Spitzner
cc9b1f6885
Fix comment placement for HsIf/HsLet
2016-08-18 15:27:10 +02:00
Lennart Spitzner
d0fcfc563e
Fix if-then-else comment placement issue
2016-08-18 01:14:11 +02:00