diff options
author | David Roundy <droundy@darcs.net> | 2007-09-20 18:12:08 +0200 |
---|---|---|
committer | David Roundy <droundy@darcs.net> | 2007-09-20 18:12:08 +0200 |
commit | 4b21bd7390a67251d5d4fe8a209171601706930c (patch) | |
tree | 298b2bc4a32097a7ed0185c317480b6827cbb2da /XMonad.hs | |
parent | 7fb3159ce65a49b2ec7666e663a90d1a5fc475e1 (diff) | |
download | metatile-4b21bd7390a67251d5d4fe8a209171601706930c.tar metatile-4b21bd7390a67251d5d4fe8a209171601706930c.zip |
add Show instance to Layout
darcs-hash:20070920161208-72aca-c7bbb3a9d7cd8f1445c89f1bf15d7302bd47896c
Diffstat (limited to 'XMonad.hs')
-rw-r--r-- | XMonad.hs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)) |