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

non-idempotency with comments inside monad/listcomps #31

Open
lspitzner opened this issue Jun 10, 2017 · 1 comment
Open

non-idempotency with comments inside monad/listcomps #31

lspitzner opened this issue Jun 10, 2017 · 1 comment

Comments

@lspitzner
Copy link
Owner

lspitzner commented Jun 10, 2017

func =
  [ abc x y
  | _ <- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
         -- comment
  , x <- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
  , y <- ccccccccccccccccccccccccccccccccccc
  ]

Each roundtrip through brittany will decrease the indentation of the comment.

Currently I cannot think of an easy fix on brittany's end for this because the ghc-exactprint interface is a bit unfortunate for this usecase. I have raised alanz/ghc-exactprint#53.

@tfausak
Copy link
Collaborator

tfausak commented Jun 18, 2019

This seems like the opposite of #174 😆

@tfausak tfausak added the bug label Jun 18, 2019
@tfausak tfausak added this to the Version 1.0.0.0 milestone Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants