Skip to content

Commit

Permalink
fixup! fixup! Fix partial uses of head
Browse files Browse the repository at this point in the history
  • Loading branch information
slotThe committed Oct 27, 2023
1 parent 770d2d9 commit 4a910a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XMonad/Hooks/StatusBar/PP.hs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ xmobarStrip = converge (xmobarStripTags ["fc","icon","action"])

converge :: (Eq a) => (a -> a) -> a -> a
converge f a
= fst . NE.head . notEmpty -- *If* this function terminates, we will find a match.
= fst . NE.head . notEmpty -- If this function terminates, we will find a match.
. dropWhile (uncurry (/=))
. zip xs
$ drop 1 xs
Expand Down

0 comments on commit 4a910a6

Please sign in to comment.