lspitzner / lspitzner/brittany
non-idempotency with comments inside monad/listcomps
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 686
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
func =
[ abc x y
| _ <- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-- comment
, x <- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
, y <- ccccccccccccccccccccccccccccccccccc
]
Each roundtrip through brittany will decrease the indentation of the comment.
Currently I cannot think of an easy fix on brittany's end for this because the ghc-exactprint interface is a bit unfortunate for this usecase. I have raised https://github.com/alanz/ghc-exactprint/issues/53.
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.
Research direction
Start by reproducing the Haskell snippet through brittany and review the linked ghc-exactprint issue #53, which describes the relevant interface limitation. Done means repeated formatting roundtrips no longer decrease the indentation of the comment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100