Lennart Spitzner
059bb9402e
Merge pull request #198 from ruhatch/type-synonyms
2019-06-05 15:56:50 +02:00
Lennart Spitzner
ca3c8b6f9e
Add one source doc
2019-06-05 15:56:32 +02:00
Lennart Spitzner
bd8b743e36
Document terminology "regular comments"
2019-06-05 15:42:47 +02:00
Lennart Spitzner
6c187da8f8
Fix cabal file for doc project
2018-11-30 22:13:02 +01:00
Lennart Spitzner
784e4d0aed
Fix prelude.inc handling in .cabal to make new-install work
...
Hopefully fixes both #162 and #200 .
2018-11-30 00:18:54 +01:00
Lennart Spitzner
621e00bf3f
Fix indentation (comments) after "if" ( Fixes #167 )
2018-11-14 14:53:08 +01:00
Rupert Horlick
01e31b4256
Add type fam instance formatting
2018-11-13 17:07:27 -04:00
Lennart Spitzner
1290e8cd27
Bump CI ghc versions (8.4.3->8.4.4, 8.6.1->8.6.2)
2018-11-12 19:00:21 +01:00
Lennart Spitzner
2fb8871d70
Merge branch 'ghc-8.6'
2018-11-12 18:58:16 +01:00
Lennart Spitzner
e7d8f59e93
travis-ci: Add ghc-8.6, Clean up a bit
2018-11-04 22:14:02 +01:00
Lennart Spitzner
34735e27ef
Add compat with GHC-8.6 API
2018-11-04 22:14:00 +01:00
Lennart Spitzner
9d915232c0
Merge branch 'where-newlines'
2018-11-04 19:23:50 +01:00
Lennart Spitzner
2eb22e730f
Add tests for empty lines around where
2018-11-04 18:13:37 +01:00
Lennart Spitzner
522e40c8ed
Retain empty lines before "where"
...
only applies to local "where"s (not module..where)
2018-11-04 18:13:37 +01:00
Lennart Spitzner
268cd333f3
Merge pull request #189 from ruhatch/type-synonyms
...
Add type synonym formatting
2018-11-04 18:05:29 +01:00
Lennart Spitzner
ad5868eb76
Fix spacing bugs, Clean up implemenation
...
- Normalize spaces on type alias lhs. unnecessary spaces were
retained previously, e.g.
"type ( ( a :%: b ) c ) = (a , c)"
had non-optimal output
- Clean up separator usage
- Remove backend hacks (to some degree)
- Minor reformatting and premature optimization
2018-10-27 16:15:28 +02:00
Rupert Horlick
e7d8b5f1ab
Fix type synonym comments
2018-10-19 15:55:29 -04:00
Rupert Horlick
b249c10054
Deal with parens inside comments on 8.4.3
2018-10-17 17:01:31 -04:00
Rupert Horlick
e1b43531a8
Add type synonym formatting
2018-10-16 19:28:30 -04:00
Lennart Spitzner
d769f30c15
travis: Prevent duplicate compilation
2018-10-14 18:25:39 +02:00
Lennart Spitzner
9de3564e00
travis: Apply fix to stack and new-build too
2018-10-14 00:56:35 +02:00
Lennart Spitzner
818768cd4b
Merge pull request #187 from ruhatch/master
...
Add instance formatting, defaulting to ExactPrint in places
2018-10-14 00:46:53 +02:00
Lennart Spitzner
11dc30fbe1
Fix travis setup once more
2018-10-13 23:57:37 +02:00
Lennart Spitzner
38216cdc02
Add longer doc/Refactor stripWhitespace'
2018-10-11 20:14:29 +02:00
Rupert Horlick
66fd44058d
Add instance formatting for simple case
2018-10-10 14:32:58 -04:00
Lennart Spitzner
6dc5561d08
Merge pull request #186 from sergv/unboxed-tuples
...
Unboxed tuples
2018-09-30 21:19:15 +02:00
Lennart Spitzner
04f441205d
Try fix travis new-build test failure with a -j1
2018-09-24 00:09:01 +02:00
Lennart Spitzner
71efa54954
Move tests, minor Refactoring, Add comments
2018-09-23 23:32:05 +02:00
Lennart Spitzner
460bd4dd2b
Merge pull request #185 from 5outh/benjamin/file-name-errors
...
Append input path name to UnknownNode errors
2018-09-23 22:29:42 +02:00
Sergey Vinokurov
9755db1d05
Unify "(#", "#)" under single name, docParenHashL and docParenHashR
2018-09-18 09:14:20 +01:00
Sergey Vinokurov
6898d3ef44
Lay out unboxed tuples in types
2018-09-18 09:07:15 +01:00
Sergey Vinokurov
281d7a2f81
Lay out unboxed tuples with spaces
...
This avoids clashes with names like foo#
2018-09-18 09:07:13 +01:00
Sergey Vinokurov
9d7cecaa92
Run tests in prallel
2018-09-17 23:54:56 +01:00
Lennart Spitzner
37e4225c49
Include exact location when printing ErrorUnknownNode
2018-09-18 00:23:23 +02:00
Lennart Spitzner
48482c59a6
Merge pull request #184 from eborden/consolidate-record-expression-layouter
...
Consolidate record expression layouter
2018-09-17 23:40:47 +02:00
5outh
b2795482fa
Append input path name to UnknownNode errors
2018-09-17 14:32:20 -04:00
Evan Rutledge Borden
92a1d89983
Consolidate record expression layouter
...
Both record construction and record layouting have very similar
constructions. These each had their own layouter with slightly different
variations. Variations here lead to subtley different bugs in layout for
nearly identicle syntactic forms.
The record update logic is more advanced and respects `IndentPolicyLeft`.
Instead of keeping these layouters distinct we can consolidate
construction logic into the update logic. This results in a smaller
volume of code and more uniform layouting of syntax for these simlilar
forms.
Record constructors with fields and wildcards are not included in this
consolidation. A TODO has been left to handle this consolidation later.
2018-09-16 15:47:04 -04:00
Lennart Spitzner
932cf70f9b
Fix stack yamls for ghc-exactprint bounds
2018-09-13 22:47:25 +02:00
Lennart Spitzner
393258036f
Bump bounds to ghc-exactprint-0.5.8 to include pkg-env innoculation
2018-09-13 22:09:12 +02:00
Lennart Spitzner
34e303ae43
Merge pull request #179 from alanz/master
...
Allow ghc-exactprint 0.5.7.1
2018-09-12 23:25:59 +02:00
Lennart Spitzner
9ae790ede1
Fix .travis script: Prevent duplicated build
2018-09-12 23:22:16 +02:00
Alan Zimmerman
989364093c
Allow ghc-exactprint 0.5.7.1
2018-09-12 22:01:43 +02:00
Lennart Spitzner
5e96ae8776
Merge pull request #178 from mightybyte/check-mode
...
Add check mode for use by test suites
2018-09-11 20:26:49 +02:00
Doug Beardsley
3729a57196
Add check mode for use by test suites
...
This mode makes no changes to files, but returns 0 (success) when no
changes would be made and 1 (failure) when changes would be made.
2018-09-11 01:25:35 -04:00
Lennart Spitzner
8c5cce5070
Prevent package environment file GHC API stupidities
...
This fixes the code-path for the commandline interface
(unfortunately not covered by our testsuite).
The other code-path should be covered by the changes in
https://github.com/alanz/ghc-exactprint/pull/68 .
2018-08-20 21:19:10 +02:00
Lennart Spitzner
33a4039751
Merge pull request #171 from ChickenProp/fix-type-operator-imports
...
Fix imports of type operators.
2018-08-19 15:20:06 +02:00
Phil Hazelden
a5a24b4220
Fix imports of type operators.
...
Previously, we could only import a type operator with no subsequent
list, i.e.
import Foo ( (:.) )
was fine, but
import Foo ( (:.)(..) )
import Foo ( (:.)((:.) )
import Foo ( (:.)(A, b) )
would all break. Brittany would attempt to output them as
import Foo ( :.(..) )
import Foo ( :.((:.) )
import Foo ( :.(A, b) )
I believe the problem was that although `ieName <$> lie` was returning
an `IEWrappedName` with the same contents as used in `layoutWrapped`,
it had different location annotations; and the parentheses are
apparently saved in the location annotations.
2018-08-10 10:01:11 +01:00
Lennart Spitzner
8c5e0ef3b6
Merge pull request #168 from robx/patch-1
...
Fix a brittany misspelling
2018-08-08 14:12:53 +02:00
Robert
c303e45f16
Fix a brittany misspelling
2018-08-06 14:05:10 +02:00
Lennart Spitzner
0aaedb7601
Merge pull request #160 from Tehnix/patch-1
...
Add note about Atom editor integration in README, fixes #62
2018-07-16 00:31:24 +02:00