mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
X.A.GridSelect: Use OVERLAPPABLE, seems to help with unnecessary recompiles
Without this, any change to tests triggers a recompile of GridSelect when invoking "stack test", adding a couple seconds. This seems to help.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE ScopedTypeVariables, GeneralizedNewtypeDeriving, TypeSynonymInstances, FlexibleInstances, OverlappingInstances #-}
|
{-# LANGUAGE ScopedTypeVariables, GeneralizedNewtypeDeriving, TypeSynonymInstances, FlexibleInstances #-}
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonad.Actions.GridSelect
|
-- Module : XMonad.Actions.GridSelect
|
||||||
@@ -220,7 +220,7 @@ instance HasColorizer Window where
|
|||||||
instance HasColorizer String where
|
instance HasColorizer String where
|
||||||
defaultColorizer = stringColorizer
|
defaultColorizer = stringColorizer
|
||||||
|
|
||||||
instance HasColorizer a where
|
instance {-# OVERLAPPABLE #-} HasColorizer a where
|
||||||
defaultColorizer _ isFg =
|
defaultColorizer _ isFg =
|
||||||
let getColor = if isFg then focusedBorderColor else normalBorderColor
|
let getColor = if isFg then focusedBorderColor else normalBorderColor
|
||||||
in asks $ flip (,) "black" . getColor . config
|
in asks $ flip (,) "black" . getColor . config
|
||||||
|
Reference in New Issue
Block a user