[xmonad] Importing Stackset qualified

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Mon May 17 17:41:35 EDT 2010


Gwern Branwen <gwern0 at gmail.com> writes:

> I noticed yesterday in my config, 'import qualified XMonad.StackSet as
> W', and I wondered - why do we do that? Is there some rationale behind
> it or is it just tradition?

Because it clashes with some Data.List functions, such as index, delete,
etc.; as some users may use parts of Data.List for various things, this
is a kind of preventative measure.

> I ask because if the former, then there are quite a few modules in XMC
> which don't import it as W, or as anything at all; a quick grep:
>
> [snip]
>
> If the former, then several of these need to be fixed or changed, I
> think.

They probably don't import Data.List.

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com


More information about the xmonad mailing list