-
Notifications
You must be signed in to change notification settings - Fork 219
Strip trailing whitespace #1422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
b82fb85
Strip trailing whitespace
sjakobi 6ba2924
cabal.project: Temporary modifications
sjakobi bb39d0b
Update format test output
sjakobi 5b9c62e
cabal.project: Use prettyprinter-master
sjakobi 162bcdf
Update prettyprinter to 1.4.0
sjakobi 6da9dd2
Merge branch 'master' into sjakobi/183-trailing-whitespace
sjakobi 658bedf
Update nix/prettyprinter.nix
sjakobi 5f5d97a
dhall-lsp-server: Allow prettyprinter-1.4.0
sjakobi a17ebc1
Apply removeTrailingWhitespace wherever we use layoutSmart
sjakobi bb45f8c
Refactor using a new util Dhall.Pretty.layout
sjakobi 18bd8bc
Revert changes to cabal.project
sjakobi 74f2026
Bump lower bounds for prettyprinter
sjakobi ae5531e
Use D.P.layout for the repl too
sjakobi 3ba2faa
Merge remote-tracking branch 'origin/master' into sjakobi/183-trailin…
sjakobi 32d9887
Remove redundant newline
sjakobi 3664f04
Strip unwanted trailing whitespace in multi-line strings
sjakobi 8066b85
Fix whitespace removal for first line of multi-line string
sjakobi de90247
Bump prettyprinter, fix a test
sjakobi 636f15a
Merge remote-tracking branch 'origin/master' into sjakobi/183-trailin…
sjakobi 013834e
Update nix/prettyprinter.nix
sjakobi 5295e4c
Try something I've seen elsewhere
sjakobi 884ce1e
Revert "Try something I've seen elsewhere"
sjakobi 446710e
nix/hnix.nix: Use hnix master
sjakobi acdc663
Try "doJailbreak" instead
sjakobi 37dd979
Fix Nix build of `dhall-nix`
Gabriella439 9259a3c
Merge branch 'master' into sjakobi/183-trailing-whitespace
sjakobi c318fb2
Fix dhall-lsp-server build
sjakobi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| packages: ./dhall ./dhall-bash ./dhall-json ./dhall-yaml ./dhall-lsp-server ./dhall-nix | ||
|
|
||
| -- While hnix doesn't allow prettyprinter > 1.3 | ||
| -- https://github.com/haskell-nix/hnix/issues/524 | ||
| allow-newer: hnix:prettyprinter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,5 +2,5 @@ | |
| → … | ||
| → …@- 1 | ||
| + 0 | ||
|
|
||
| → … | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| {- bla -} | ||
|
|
||
| True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| { inner = | ||
| '' | ||
|
|
||
| one | ||
|
|
||
| two | ||
|
|
||
| three | ||
|
|
||
| '' | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| let foo = | ||
|
|
||
| {- test -} | ||
| "hello" | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| let foo = 1 | ||
|
|
||
| in λ(bar : Integer) | ||
| → let exposePort = | ||
| λ(portSpec : { ext : Integer, int : Integer }) | ||
| → Integer/show portSpec.ext ++ ":" ++ Integer/show portSpec.int | ||
|
|
||
| in let exposeSamePort = | ||
| λ(port : Integer) → exposePort { ext = port, int = port } | ||
|
|
||
| in { blah = bar } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| let foo = 1 | ||
|
|
||
| in λ(bar : Integer) | ||
| → let exposePort = | ||
| λ(portSpec : { ext : Integer, int : Integer }) | ||
| → Integer/show portSpec.ext ++ ":" ++ Integer/show portSpec.int | ||
|
|
||
| in let exposeSamePort = | ||
| λ(port : Integer) → exposePort { ext = port, int = port } | ||
|
|
||
| in { blah = bar } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,5 +5,5 @@ in let {- aaaaaaaaaaaaaaaaaaa | |
| : {- bbbbbbbbbbbbbbbbbbbbb | ||
| -} Natural | ||
| = {- ddddddddddddddddd -} 2 | ||
|
|
||
| in x | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { x = " \n\nfoo \n" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { x = | ||
| '' | ||
|
|
||
|
|
||
| foo | ||
| '' | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's trailing whitespace on this line, but GitHub doesn't seem to display it unlike the trailing whitespace after
fooon line 5.