mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 20:21:51 -07:00
Apply hlint 3.5 hints
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE FlexibleContexts #-}
|
||||
{-# LANGUAGE FlexibleInstances #-}
|
||||
{-# LANGUAGE MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE PatternGuards #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE TupleSections #-}
|
||||
-----------------------------------------------------------------------------
|
||||
-- |
|
||||
-- Module : XMonad.Layout.Decoration
|
||||
@@ -241,7 +242,7 @@ instance (DecorationStyle ds Window, Shrinker s) => LayoutModifier (Decoration d
|
||||
toDel = todel d dwrs
|
||||
toAdd = toadd a wrs
|
||||
deleteDecos (map snd toDel)
|
||||
let ndwrs = zip toAdd $ repeat (Nothing,Nothing)
|
||||
let ndwrs = map (, (Nothing,Nothing)) toAdd
|
||||
ndecos <- resync (ndwrs ++ del_dwrs d dwrs) wrs
|
||||
processState (s {decos = ndecos })
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE FlexibleInstances #-}
|
||||
{-# LANGUAGE MultiParamTypeClasses #-}
|
||||
{-# LANGUAGE TupleSections #-}
|
||||
-----------------------------------------------------------------------------
|
||||
-- |
|
||||
-- Module : XMonad.Layout.Simplest
|
||||
@@ -39,4 +41,4 @@ import qualified XMonad.StackSet as S
|
||||
|
||||
data Simplest a = Simplest deriving (Show, Read)
|
||||
instance LayoutClass Simplest a where
|
||||
pureLayout Simplest rec (S.Stack w l r) = zip (w : reverse l ++ r) (repeat rec)
|
||||
pureLayout Simplest rec (S.Stack w l r) = map (, rec) (w : reverse l ++ r)
|
||||
|
@@ -4,6 +4,7 @@
|
||||
{-# LANGUAGE ParallelListComp #-}
|
||||
{-# LANGUAGE PatternGuards #-}
|
||||
{-# LANGUAGE ScopedTypeVariables #-}
|
||||
{-# LANGUAGE TupleSections #-}
|
||||
{-# LANGUAGE ViewPatterns #-}
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
@@ -347,7 +348,7 @@ instance forall l. (Read (l Window), Show (l Window), LayoutClass l Window) => L
|
||||
return $ Just $ Sublayout (I ((sm,w):ms)) defl sls
|
||||
|
||||
| Just (Broadcast sm) <- fromMessage m = do
|
||||
ms' <- fmap (zip (repeat sm) . W.integrate') currentStack
|
||||
ms' <- fmap (map (sm,) . W.integrate') currentStack
|
||||
return $ if null ms' then Nothing
|
||||
else Just $ Sublayout (I $ ms' ++ ms) defl sls
|
||||
|
||||
@@ -408,7 +409,7 @@ instance forall l. (Read (l Window), Show (l Window), LayoutClass l Window) => L
|
||||
catchLayoutMess :: LayoutMessages -> X (Maybe (Sublayout l Window))
|
||||
catchLayoutMess x = do
|
||||
let m' = x `asTypeOf` (undefined :: LayoutMessages)
|
||||
ms' <- zip (repeat $ SomeMessage m') . W.integrate'
|
||||
ms' <- map (SomeMessage m',) . W.integrate'
|
||||
<$> currentStack
|
||||
return $ do guard $ not $ null ms'
|
||||
Just $ Sublayout (I $ ms' ++ ms) defl sls
|
||||
|
Reference in New Issue
Block a user