Skip to content

Commit

Permalink
Restyled by fourmolu
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Aug 13, 2024
1 parent 365a0e4 commit 45d32a2
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ trimRow xs =
, leftDrops = nullPrefixLength
, rightDrops = nullSuffixLength
}
where
(nullPrefixLength, remainingTail) = countDrops xs
(nullSuffixLength, remainingMiddleReversed) = countDrops $ reverse remainingTail

countDrops s =
(length nulls, remainder)
where
(nulls, remainder) = span null s
where
(nullPrefixLength, remainingTail) = countDrops xs
(nullSuffixLength, remainingMiddleReversed) = countDrops $ reverse remainingTail

countDrops s =
(length nulls, remainder)
where
(nulls, remainder) = span null s

-- * Util

Expand Down

0 comments on commit 45d32a2

Please sign in to comment.