Skip to content

Commit 8a38f40

Browse files
committed
clean up words
1 parent 219902a commit 8a38f40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cabal-syntax/src/Distribution/PackageDescription/ExactPrint.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ renderWithPositionAdjustment mAnn current name doc =
7979
spacing $$
8080
(PP.nest columns
8181
(PP.text fieldName ) <> ((PP.hsep ("" <$ [0..offset])) <> doc))
82-
-- <+> "--" <+> PP.text (show ((rows, columns), mAnn, current, offset)) -- DEBUG shit
82+
-- <+> "--" <+> PP.text (show ((rows, columns), mAnn, current, offset)) -- DEBUG
8383
where
8484
(Position rows columns) = case mAnn of
8585
Just position -> (namePosition position) `difference` current
@@ -96,7 +96,7 @@ renderWithPositionAdjustment mAnn current name doc =
9696
((Position _ cols):_) -> cols
9797
[] -> 0) - length fieldName - 1
9898

99-
-- undo pp fuckups
99+
-- pp randomly changes ordering, this undoes that
100100
sortFields :: [PrettyField (Maybe ExactPosition)] -> [PrettyField (Maybe ExactPosition)]
101101
sortFields = reverse . sortOn (join . prettyFieldAnn)
102102

0 commit comments

Comments
 (0)