Evan Rutledge Borden
17eec7471c
Remove redundant import.
2018-01-15 19:20:18 -05:00
Evan Rutledge Borden
3b0b5d3c4f
Change infix patterns to include spaces
...
This commit changes infix patterns to utilize `lrdrNameToTextAnn`. This
function allows the logic to avoid introspecting on the constructor
name.
Additionally this adds spaces to all infix operator pattern matches.
Previously infix symbols did not include spaces:
```
foo (x:xs) = _
```
Now they include a space
```
foo (x : xs) = _
```
2018-01-15 19:20:18 -05:00
Evan Rutledge Borden
778381bbb8
Fix infix constructor pattern matching for normal constructors
...
Brittany was previously only support symbol based infix constructors. It
is common in some libraries (for example Esqueleto) to pattern match on
normal constructors as infix. Brittany was failing in this case by not
wrapping the constructor name in back ticks/spaces. Backticks and spaces
have been added in the case where the constructor contains any alpha
characters.
2018-01-15 19:18:58 -05:00
Lennart Spitzner
7892b0e42d
Update README.md
2018-01-15 19:18:58 -05:00
Lennart Spitzner
04764aa0f8
Update readme: Add editor integration paragraph
2018-01-15 19:18:58 -05:00
Lennart Spitzner
895652eeb9
Update README.md for stackage lts release
2018-01-15 19:18:58 -05:00
Lennart Spitzner
3d1b104dce
Merge pull request #108 from eschnett/patch-3
...
Correct wording of warning message
2018-01-16 00:37:26 +01:00
Erik Schnetter
b46f9dd23b
Correct wording of warning message
...
"certain" -> "some"
2018-01-15 18:11:50 -05:00
Lennart Spitzner
25ff576dc3
Merge pull request #97 from eborden/let-in-on-single-lines
...
Format let and in on a single line if they fit
2018-01-13 21:39:11 +01:00
Lennart Spitzner
399e2f4f43
Minor cleanups
2018-01-13 18:41:51 +01:00
Lennart Spitzner
e788ac9afd
Minor fixup in Main.hs for next butcher release
2018-01-13 18:31:39 +01:00
Evan Rutledge Borden
cab1297585
Change function name to if/else
2017-12-31 00:11:10 -05:00
Evan Rutledge Borden
f1b49b082f
Format let and in on a single line if they fit
...
The following is wasteful of vertical space:
```
_ =
let
longIdentifierForShortValue = 1
in
longIdentifierForShortValue + longIdentifierForShortValue
```
We should format it on two lines if possible.
```
_ =
let longIdentifierForShortValue = 1
in longIdentifierForShortValue + longIdentifierForShortValue
```
This commit also allows for a mix of variations:
```
_ =
let
longIdentifierForShortValue = 1
in longIdentifierForShortValue + longIdentifierForShortValue
_ =
let longIdentifierForShortValue = 1
in
longIdentifierForShortValue + longIdentifierForShortValue
```
2017-12-31 00:04:53 -05:00
Lennart Spitzner
37e355fea5
Support hanging type signature config option
2017-12-28 21:38:31 +01:00
Lennart Spitzner
43abab2dd2
Remove space after opening parenthesis ( fixes #87 )
2017-12-28 20:46:03 +01:00
Lennart Spitzner
96b3a3ab93
Merge pull request #91 from tuncer/stack-lts-10.0
...
stack.yaml: update to lts-10.0
2017-12-28 20:17:28 +01:00
Lennart Spitzner
ac9d505334
Rename the ghc-8.0.2 stack yaml
2017-12-28 17:30:58 +01:00
Tuncer Ayaz
8137035ac2
Resurrect old stack.yaml for lts-9.0 ci job
2017-12-28 17:30:58 +01:00
Tuncer Ayaz
292bd3d216
stack.yaml: update to lts-10.0
2017-12-28 17:30:58 +01:00
Lennart Spitzner
0f3ee76944
Fix shebang handling with stdin input
...
Fixes #92
probably should update upstream (ghc-exactprint)
2017-12-27 23:26:18 +01:00
Lennart Spitzner
f920f4714d
Fix maximum on empty list, fixes #88
2017-12-21 21:45:29 +01:00
Lennart Spitzner
ac10b903af
travis.yml: Set jobs to 1, Pass to stack
2017-12-19 20:05:55 +01:00
Lennart Spitzner
5dac6dd7f2
Add ghc-option -Werror to all builds in .travis.yml
2017-12-19 19:53:26 +01:00
Lennart Spitzner
d8097f2862
Add mask_ to prevent "ghc panic" when using timeout on brittany
2017-12-17 15:45:08 +01:00
Lennart Spitzner
39dc6d5d2d
Merge branch 'master' into dev
2017-12-15 20:56:56 +01:00
Lennart Spitzner
a24f092aac
Update doc-svg-gen.cabal to prevent new-configure annoyance
2017-12-15 20:55:31 +01:00
Lennart Spitzner
f7e5287f1d
Update README.md (0.9.0.0 changes, widget)
2017-12-15 15:13:11 +01:00
Lennart Spitzner
9700fb2a50
Merge pull request #82 from matthew-piziak/tuple-section-support
...
Tuple section support (fixes #41 )
2017-12-15 00:49:57 +01:00
Matthew Piziak
9704fc3490
add tuple section tests
2017-12-14 18:15:07 -05:00
Matthew Piziak
b731cd15e7
capture starting layout
2017-12-14 16:17:39 -05:00
Lennart Spitzner
0036dbf410
Add some documentation for `layoutPat`
2017-12-11 17:13:33 +01:00
Lennart Spitzner
95e4346742
one fixup addition to the 0.9.0.0 changelog
2017-12-11 17:10:58 +01:00
Lennart Spitzner
442f32aef9
Update README.md: stack with recent resolver
2017-12-11 17:10:27 +01:00
Lennart Spitzner
be4d0f8333
Merge pull request #78 from damienflament/archlinux-installation
...
Readme: Add ArchLinux installation
2017-12-11 16:48:05 +01:00
Damien Flament
b79a0908c8
Added link to the AUR package
2017-12-11 16:44:39 +01:00
Damien Flament
07b928b00c
Added ArchLinux installation instructions
2017-12-11 13:10:57 +01:00
Lennart Spitzner
63c04e0b66
Merge pull request #75 from lpil/patch-1
...
Add missing code blocks to layout docs
2017-12-09 16:12:09 +01:00
Louis Pilfold
3130fecf07
Add missing code blocks to layout docs
2017-12-09 15:09:22 +00:00
Lennart Spitzner
4ded834a97
Clean-up cabal file: Remove development flag
2017-12-08 21:14:35 +01:00
Lennart Spitzner
16d5116193
Bump to 0.9.0.0
2017-12-08 21:11:39 +01:00
Lennart Spitzner
eba7fc0d37
Add ChangeLog for 0.9.0.0
2017-12-08 19:59:06 +01:00
Lennart Spitzner
39c48b33f1
Fix error in Annotation filtering ( fixes #70 )
2017-12-08 19:57:16 +01:00
Lennart Spitzner
5bba918705
Merge pull request #66 from eborden/indentpolicyleft
...
Support IndentPolicyLeft
2017-12-01 00:30:27 +01:00
Lennart Spitzner
072b1cf091
Make macOS the first travis build job (it is slowest)
2017-12-01 00:12:09 +01:00
Lennart Spitzner
127299b442
Merge branch 'dev' into indentpolicyleft
2017-11-30 23:47:18 +01:00
Lennart Spitzner
882a3b1a7a
Allow single-line after let with IndentPolicyLeft
2017-11-30 23:20:35 +01:00
Lennart Spitzner
8a401d291e
Workaround for #68 : trim exactprinted text for unknown nodes
2017-11-28 18:23:05 +01:00
Lennart Spitzner
6a97379b33
Add whitespace around operator in section, Fixes #67
2017-11-28 17:56:28 +01:00
Lennart Spitzner
d9155e240d
RecursiveDo: Add second layout, Respect IndentPolicyLeft
2017-11-27 23:13:13 +01:00
Lennart Spitzner
466ff237ff
Add some comments/examples in layoutStmt
2017-11-27 23:05:47 +01:00