hide existential Layout (mostly) from user API.

This commit is contained in:
David Roundy
2007-11-11 00:30:55 +00:00
parent 11711e1a46
commit c8473e3ae9
3 changed files with 12 additions and 11 deletions

View File

@@ -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