From a28db8934185db9196420b3ba07204e5053f81d0 Mon Sep 17 00:00:00 2001 From: David Roundy Date: Sun, 11 Nov 2007 01:30:55 +0100 Subject: hide existential Layout (mostly) from user API. darcs-hash:20071111003055-72aca-77eb2071cd596e0e13746413807f375d199dbe32.gz --- XMonad/Main.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'XMonad/Main.hs') diff --git a/XMonad/Main.hs b/XMonad/Main.hs index c40e45e..5054c79 100644 --- a/XMonad/Main.hs +++ b/XMonad/Main.hs @@ -38,8 +38,10 @@ import System.IO -- | -- The main entry point -- -xmonad :: XConfig -> IO () -xmonad xmc = do +xmonad :: (LayoutClass l Window, Read (l Window)) => XConfig l -> IO () +xmonad initxmc = do + -- First, wrap the layout in an existential, to keep things pretty: + let xmc = initxmc { layoutHook = Layout $ layoutHook initxmc } dpy <- openDisplay "" let dflt = defaultScreen dpy -- cgit v1.2.3