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

Patterns which need 'signatures' end up with excess linebreak #524

Closed
2 tasks done
kozross opened this issue Nov 9, 2018 · 0 comments · Fixed by #663
Closed
2 tasks done

Patterns which need 'signatures' end up with excess linebreak #524

kozross opened this issue Nov 9, 2018 · 0 comments · Fixed by #663

Comments

@kozross
Copy link

kozross commented Nov 9, 2018

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.

  • I checked the issue tracker for existing issues about this problem.
  • 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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant