lspitzner / brittany

haskell source code formatter
GNU Affero General Public License v3.0
690 stars 72 forks source link

Comment walks to the right each time formatted #174

Open pbrisbin opened 6 years ago

pbrisbin commented 6 years ago

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 :joy: