Skip to content

Commit

Permalink
Do not insert an empty line after a standalone kind signature
Browse files Browse the repository at this point in the history
  • Loading branch information
toku-sa-n committed Apr 15, 2024
1 parent c3754a4 commit 2780ba9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Changed

- The formatting style of import declarations with constructors ([#829]).
- HIndent no longer inserts an empty line after a standalone kind signature ([#873]).

### Fixed

Expand Down Expand Up @@ -375,6 +376,7 @@ This version is accidentally pushlished, and is the same as 5.3.3.
[@uhbif19]: https://github.com/uhbif19
[@toku-sa-n]: https://github.com/toku-sa-n

[#873]: https://github.com/mihaimaruseac/hindent/pull/873
[#868]: https://github.com/mihaimaruseac/hindent/pull/868
[#849]: https://github.com/mihaimaruseac/hindent/pull/849
[#843]: https://github.com/mihaimaruseac/hindent/pull/843
Expand Down
2 changes: 2 additions & 0 deletions TESTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ data family Foo a
{-# LANGUAGE StandaloneKindSignatures #-}

type Foo :: Type -> Type -> Type
data Foo a b =
Foo a b
```

Default declaration
Expand Down
1 change: 1 addition & 0 deletions src/HIndent/Ast/Declaration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,5 @@ mkDeclaration GHC.DocD {} =

isSignature :: Declaration -> Bool
isSignature Signature {} = True
isSignature StandaloneKindSignature {} = True
isSignature _ = False

0 comments on commit 2780ba9

Please sign in to comment.