Skip to content

Comments in list lead to odd formatting for preceding element #231

@expipiplus1

Description

@expipiplus1
foo =
  [ ("xx", "xx")
  , ("xx", "xxx")
  , ("xx", "xxx")
  , ( "xx"
    , "xx"
    )
    --
  , ("xx" , "xxxxx")
  , ("xxx", "xxxxx")
  , ("xx" , "xx")
  ]

Note that the formatting of the element before the comment is not consistent with the other elements.

A workaround is butting the comment after the comma:

foo =
  [ ("xx" , "xx")
  , ("xx" , "xxx")
  , ("xx" , "xxx")
  , ("xx" , "xx")
  , -- xxxxxx xxx
    ("xx" , "xxxxx")
  , ("xxx", "xxxxx")
  , ("xx" , "xx")
  ]

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions