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

Unnecesary newline with bidirectional pattern synonyms #843

Closed
amesgen opened this issue Dec 8, 2021 · 0 comments · Fixed by #851
Closed

Unnecesary newline with bidirectional pattern synonyms #843

amesgen opened this issue Dec 8, 2021 · 0 comments · Fixed by #851
Labels
style Nitpicking and things related to purely visual aspect for formatting.
Milestone

Comments

@amesgen
Copy link
Member

amesgen commented Dec 8, 2021

With 0.4.0.0, the snippet

{-# LANGUAGE PatternSynonyms #-}

pattern Seq l l' <- Seq' l l'
  where
    Seq l l' = case l' of
      Empty -> l
      _ -> Seq' l l'

is formatted to

{-# LANGUAGE PatternSynonyms #-}

pattern Seq l l' <-
  Seq' l l'
  where
    Seq l l' = case l' of
      Empty -> l
      _ -> Seq' l l'

where the newline after the <- seems a bit unnecessary (but it probably should be present if the pattern were mult-line).

@amesgen amesgen added the style Nitpicking and things related to purely visual aspect for formatting. label Dec 8, 2021
@mrkkrp mrkkrp added this to the 0.5.0.0 milestone Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style Nitpicking and things related to purely visual aspect for formatting.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants