Skip to content
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

Do not insert an empty line after a standalone kind signature #873

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading