brittany
brittany copied to clipboard
Wandering comment in list-literal/let-in/case-of
func =
[ abc
, let x = y
in case x of
-- comment
abc -> def
ghc -> ghjas
]
haven't checked if this is minimal.
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.