lspitzner / lspitzner/brittany

Comments in list lead to odd formatting for preceding element

Open
#231 4 comments 0 reactions 1 assignee View on GitHub

@lspitzner is already working on this.

Since Feb 13, 2020.

bug hs:comments hs:lists layouting
Dominant language
Haskell
Stars
686
Forks
69
PR merge metrics
No merged PRs in 30d

Description

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")
  ]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.