mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-04 06:01:53 -07:00
add Show instance to Layout
This commit is contained in:
@@ -132,8 +132,10 @@ atom_WM_STATE = getAtom "WM_STATE"
|
||||
-- returns an updated 'Layout' and the screen is refreshed.
|
||||
--
|
||||
data SomeLayout a = forall l. Layout l a => SomeLayout (l a)
|
||||
instance Show (SomeLayout a) where
|
||||
show (SomeLayout l) = show l
|
||||
|
||||
class Layout layout a where
|
||||
class Show (layout a) => Layout layout a where
|
||||
doLayout :: layout a -> Rectangle -> Stack a -> X ([(a, Rectangle)], Maybe (layout a))
|
||||
modifyLayout :: layout a -> SomeMessage -> X (Maybe (layout a))
|
||||
|
||||
|
Reference in New Issue
Block a user