Skip to content

Commit da3e4be

Browse files
jecarogeekosaur
authored andcommitted
Remove the call to singleton
1 parent d014d7a commit da3e4be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XMonad/Layout/Columns.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import Control.Monad (guard)
4747
import Control.Monad.State (modify)
4848
import Control.Monad.Trans.Maybe (MaybeT (..))
4949
import Data.Foldable (Foldable (..))
50-
import Data.List (scanl', singleton)
50+
import Data.List (scanl')
5151
import Data.Maybe (listToMaybe)
5252
import Data.Ratio ((%))
5353
import XMonad
@@ -358,7 +358,7 @@ mapWindow :: (Window -> Window) -> Columns -> Columns
358358
mapWindow = fmap . fmap . fmap . fmap
359359

360360
columnsToWindows :: Columns -> [Window]
361-
columnsToWindows = foldMap (singleton . snd) . foldMap snd
361+
columnsToWindows = foldMap ((:[]) . snd) . foldMap snd
362362

363363
swapWindowBetween ::
364364
Window ->

0 commit comments

Comments
 (0)