mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 04:01:51 -07:00
Remove all derivations of Typeable
Typeable has been automatically derived for every type since GHC 7.10,
so remove these obsolete derivations. This also allows us to get rid of
the `DeriveDataTypeable` pragma quite naturally.
Related: https://github.com/xmonad/xmonad/pull/299 (xmonad/xmonad@9e5b16ed8a)
Related: bd5b969d9b
Fixes: https://github.com/xmonad/xmonad-contrib/issues/548
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, DeriveDataTypeable #-}
|
||||
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
-- |
|
||||
@@ -23,7 +23,6 @@ module XMonad.Layout.Reflect (
|
||||
|
||||
) where
|
||||
|
||||
import XMonad.Core
|
||||
import XMonad.Prelude (fi)
|
||||
import Graphics.X11 (Rectangle(..), Window)
|
||||
import Control.Arrow (second)
|
||||
@@ -101,8 +100,8 @@ instance LayoutModifier Reflect a where
|
||||
|
||||
-------- instances for MultiToggle ------------------
|
||||
|
||||
data REFLECTX = REFLECTX deriving (Read, Show, Eq, Typeable)
|
||||
data REFLECTY = REFLECTY deriving (Read, Show, Eq, Typeable)
|
||||
data REFLECTX = REFLECTX deriving (Read, Show, Eq)
|
||||
data REFLECTY = REFLECTY deriving (Read, Show, Eq)
|
||||
|
||||
instance Transformer REFLECTX Window where
|
||||
transform REFLECTX x k = k (reflectHoriz x) (\(ModifiedLayout _ x') -> x')
|
||||
|
Reference in New Issue
Block a user