hindent icon indicating copy to clipboard operation
hindent copied to clipboard

Patterns which need 'signatures' end up with excess linebreak

Open kozross opened this issue 6 years ago • 0 comments

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))

kozross avatar Nov 09 '18 01:11 kozross