brittany icon indicating copy to clipboard operation
brittany copied to clipboard

non-idempotency with comments inside monad/listcomps

Open lspitzner opened this issue 8 years ago • 1 comments

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 https://github.com/alanz/ghc-exactprint/issues/53.

lspitzner avatar Jun 10 '17 11:06 lspitzner

This seems like the opposite of #174 😆

tfausak avatar Jun 18 '19 17:06 tfausak