From c48647ee1817611876303ffc0562b3b8cc2737f3 Mon Sep 17 00:00:00 2001 From: Don Stewart Date: Thu, 8 Nov 2007 01:35:39 +0100 Subject: maybe False (const True) -> isJust. spotted by shachaf darcs-hash:20071108003539-cba2c-b435890d8990e3a7f6b2df40823db5b4ed913a02.gz --- XMonad/StackSet.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'XMonad') diff --git a/XMonad/StackSet.hs b/XMonad/StackSet.hs index e5adfa1..33536ce 100644 --- a/XMonad/StackSet.hs +++ b/XMonad/StackSet.hs @@ -42,7 +42,7 @@ module XMonad.StackSet ( ) where import Prelude hiding (filter) -import Data.Maybe (listToMaybe,fromJust) +import Data.Maybe (listToMaybe,fromJust,isJust) import qualified Data.List as L (deleteBy,find,splitAt,filter,nub) import Data.List ( (\\) ) import qualified Data.Map as M (Map,insert,delete,empty) @@ -439,7 +439,7 @@ mapLayout f (StackSet v vs hs m) = StackSet (fScreen v) (map fScreen vs) (map fW -- | /O(n)/. Is a window in the StackSet. member :: Eq a => a -> StackSet i l a s sd -> Bool -member a s = maybe False (const True) (findTag a s) +member a s = isJust (findTag a s) -- | /O(1) on current window, O(n) in general/. -- Return Just the workspace tag of the given window, or Nothing -- cgit v1.2.3