mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 20:21:51 -07:00
Apply hlint hints
All hints are applied in one single commit, as a commit per hint would result in 80+ separate commits—tihs is really just too much noise. Related: https://github.com/xmonad/xmonad-contrib/issues/537
This commit is contained in:
@@ -33,8 +33,7 @@ instance Arbitrary (Selection a) where
|
||||
arbitrary = do
|
||||
nm <- arbNat
|
||||
st <- arbNat
|
||||
nr <- arbPos
|
||||
return $ Sel nm (st + nm) nr
|
||||
Sel nm (st + nm) <$> arbPos
|
||||
|
||||
--
|
||||
-- The all important Arbitrary instance for StackSet.
|
||||
@@ -176,5 +175,5 @@ arbitraryWindow :: NonEmptyWindowsStackSet -> Gen Window
|
||||
arbitraryWindow (NonEmptyWindowsStackSet x) = do
|
||||
let ws = allWindows x
|
||||
-- We know that there are at least 1 window in a NonEmptyWindowsStackSet.
|
||||
idx <- choose (0, (length ws) - 1)
|
||||
idx <- choose (0, length ws - 1)
|
||||
return $ ws !! idx
|
||||
|
Reference in New Issue
Block a user