lspitzner / lspitzner/brittany
Comments in list lead to odd formatting for preceding element
Open
@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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.