Skip to content

Commit

Permalink
v0.0.11 fix #42: delete trailing tabs even with --tab=0
Browse files Browse the repository at this point in the history
Also: bump stack.yaml files to latest snapshots.
  • Loading branch information
andreasabel committed Dec 5, 2022
1 parent e593b4a commit e277222
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Version history.

## 0.0.11 Santa Clause edition released 2022-12-06

- Delete trailing tabs even when `--tab=0`
[#42](https://github.com/agda/fix-whitespace/issues/42)
- Tested with GHC 8.0.2 - 9.4.3.

## 0.0.10 released 2022-08-21

- Symlink problem
Expand Down
2 changes: 1 addition & 1 deletion FixWhitespace.hs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ transform tabSize =
reverse . dropWhile1 Text.null . reverse

removeTrailingWhitespace =
Text.dropWhileEnd ((`elem` [Space,Format]) . generalCategory)
Text.dropWhileEnd $ \ c -> generalCategory c `elem` [Space,Format] || c == '\t'

convertTabs = if tabSize <= 0 then id else
Text.pack . reverse . fst . foldl convertOne ([], 0) . Text.unpack
Expand Down
5 changes: 1 addition & 4 deletions stack-9.0.2.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
resolver: lts-19.20
resolver: lts-19.33
compiler: ghc-9.0.2
compiler-check: match-exact

extra-deps:
- filepattern-0.1.3
2 changes: 1 addition & 1 deletion stack-9.2.5.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resolver: lts-20.1
resolver: lts-20.3
compiler: ghc-9.2.5
compiler-check: match-exact
2 changes: 1 addition & 1 deletion stack-9.4.3.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resolver: nightly-2022-11-26
resolver: nightly-2022-12-05
compiler: ghc-9.4.3
compiler-check: match-exact

0 comments on commit e277222

Please sign in to comment.