hindent
hindent copied to clipboard
Patterns which need 'signatures' end up with excess linebreak
Problem
When using patterns which require 'signatures', hindent forces there to be a line break between the 'signature' and the 'definition'. This is a little awkward; ideally, it should mirror functions.
- [X] I checked the issue tracker for existing issues about this problem.
- [X] I'm using the latest version of hindent.
Input haskell
pattern Atom :: Bool -> Word64 -> AtomP
pattern Atom x y <- (view -> Just (x, y))
Expected output haskell
pattern Atom :: Bool -> Word64 -> AtomP
pattern Atom x y <- (view -> Just (x, y))
Actual output haskell
pattern Atom :: Bool -> Word64 -> AtomP
pattern Atom x y <- (view -> Just (x, y))