
On Tue, Nov 13, 2007 at 10:41:13PM +0200, Valery V. Vorotyntsev wrote:
Can we use more general type in XConfig definition?
I didn't think we could. Does it actually work? I'd think that'd break things. i.e. there's no way I can see to change a function (XConfig l -> a) to a function (XConfig Layout -> a), which we'd need to do. Is there any reason other than elegance that you'd like to do this?
$ darcs w XMonad/Core.hs What's new in "XMonad/Core.hs":
{ hunk ./XMonad/Core.hs 75 - , keys :: XConfig Layout -> M.Map (ButtonMask,KeySym) (X ()) - , mouseBindings :: XConfig Layout -> M.Map (ButtonMask, Button) (Window -> X ()) + , keys :: XConfig l -> M.Map (ButtonMask,KeySym) (X ()) + , mouseBindings :: XConfig l -> M.Map (ButtonMask, Button) (Window -> X ()) }
Thanks!