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

Open
opened 2020-04-21 13:18:05 +02:00 by lspitzner · 1 comment
lspitzner commented 2020-04-21 13:18:05 +02:00 (Migrated from github.com)
func =
  [ abc
  , let x = y
    in  case x of
          -- comment
          abc -> def
          ghc -> ghjas
  ]

haven't checked if this is minimal.

~~~~,hs func = [ abc , let x = y in case x of -- comment abc -> def ghc -> ghjas ] ~~~~ haven't checked if this is minimal.
hellerve commented 2020-06-14 15:49:35 +02:00 (Migrated from github.com)

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.

The minimal example that I found is this (based on the example in the online version): ```haskell 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`.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#297
There is no content yet.