lspitzner / lspitzner/brittany

Comment walks to the right each time formatted

Open
#174 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Haskell
Stars
686
Forks
69
PR merge metrics
No merged PRs in 30d

Description

Paste this example into https://hexagoxel.de/brittany/

module WalkingComment where

fetchAssessmentAnswersForSchool
  :: MonadIO m
  => SchoolId
  -> SqlPersistT
       m
       [ -- Keep clicking format and watch this comment walk to the right...
         ( Value MathAssessmentAssignmentSessionId
         , Value UTCTime -- Created at
         , Value FQId
         , Value NameComponent -- Student first name
         , Value NameComponent -- Student last name
         , Value Text -- Teacher full name
         , Value UTCTime -- Updated at
         , Entity AssessmentAnswer
         )
       ]
fetchAssessmentAnswersForSchool = undefined

Every time you click format, the "Keep clicking" comment walks one column to the right.

Kind of funny to watch 😂

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.

Research direction

Reproduce the issue in the linked Brittany web formatter using the Haskell snippet and repeatedly click format. Trace the comment indentation behavior from this entry point; done means formatting the same input repeatedly no longer moves the comment to the right.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.