[xmonad] change Layout to `l' in XConfig?

David Roundy droundy at darcs.net
Tue Nov 13 15:48:15 EST 2007


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!


More information about the xmonad mailing list