brittany icon indicating copy to clipboard operation
brittany copied to clipboard

Wandering comment in list-literal/let-in/case-of

Open lspitzner opened this issue 5 years ago • 1 comments

func =
  [ abc
  , let x = y
    in  case x of
          -- comment
          abc -> def
          ghc -> ghjas
  ]

haven't checked if this is minimal.

lspitzner avatar Apr 21 '20 11:04 lspitzner

The minimal example that I found is this (based on the example in the online version):

main =
  let x = 42
  in -- here we do something fun
      print x

Every time we run brittany, a space will be inserted between in and the comment. This is a problem for me when using brittany in CI to check (using -c) whether the formatting is okay to go, since it will always output 1.

hellerve avatar Jun 14 '20 13:06 hellerve