[xmonad] idea: split XConfig definition into its own file

Spencer Janssen sjanssen at cse.unl.edu
Sat Nov 17 17:58:27 EST 2007


On Saturday 17 November 2007 10:40:55 Brent Yorgey wrote:
> Hi all,
>
> How do people feel about splitting the definition of XConfig out of
> Core.hsand into its own file,
> XConfig.hs?  (It could then be re-exported from Core.hs, of course, so no
> changes would be required to anything else.) The point of this would be so
> people who are trying to write their xmonad.hs and want to see what fields
> are available don't have to wade through all of Core.hs to find it.  Such
> an XConfig.hs would also be a good place to provide some nice, detailed
> Haddock documentation explaining what each of the different fields are, and
> how to use them.  I'd be happy to make the changes myself, just thought I'd
> run it by the list first to see what people think.
>
> -Brent

The problem here is that the X monad carries XConfig as part of its state, and
XConfig refers to X in some of its components.  We should avoid cyclic
dependencies as much as possible, I think.


Cheers,
Spencer Janssen



More information about the xmonad mailing list