[xmonad] Importing Stackset qualified

Gwern Branwen gwern0 at gmail.com
Mon May 17 13:17:44 EDT 2010


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?

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:

Actions/DwmPromote.hs:import XMonad.StackSet
Actions/OnScreen.hs:import XMonad.StackSet hiding (new)
Actions/Plane.hs:import XMonad.StackSet hiding (workspaces)
Actions/CycleSelectedLayouts.hs:import qualified XMonad.StackSet as S
Actions/UpdatePointer.hs:import XMonad.StackSet (member, peek,
screenDetail, current)
Actions/RotSlaves.hs:import XMonad.StackSet
Actions/MessageFeedback.hs:import XMonad.StackSet ( current,
workspace, layout, tag )
Actions/Commands.hs:import XMonad.StackSet hiding (workspaces)
Actions/Promote.hs:import XMonad.StackSet
Actions/FocusNth.hs:import XMonad.StackSet
Doc/Extending.hs:Remember to import the module that defines the
'XMonad.StackSet.shift'
Hooks/Place.hs:import qualified XMonad.StackSet as S
Hooks/DynamicLog.hs:import qualified XMonad.StackSet as S
Layout/Cross.hs:import XMonad.StackSet( focus, up, down )
Layout/Spiral.hs:import XMonad.StackSet ( integrate )
Layout/Grid.hs:import XMonad.StackSet
Layout/Dishes.hs:import XMonad.StackSet (integrate)
Layout/SimplestFloat.hs:import qualified XMonad.StackSet as S
Layout/Maximize.hs:import qualified XMonad.StackSet as S
Layout/Magnifier.hs:import XMonad.StackSet
Layout/IndependentScreens.hs:import XMonad.StackSet hiding (filter, workspaces)
Layout/Simplest.hs:import qualified XMonad.StackSet as S
Layout/Circle.hs:import XMonad.StackSet (integrate, peek)
Layout/PositionStoreFloat.hs:import qualified XMonad.StackSet as S
Layout/HintedGrid.hs:import XMonad.StackSet
Layout/Master.hs:import qualified XMonad.StackSet as S
Layout/TwoPane.hs:import XMonad.StackSet ( focus, up, down)
Layout/Square.hs:import XMonad.StackSet ( integrate )
Layout/TabBarDecoration.hs:import qualified XMonad.StackSet as S
Layout/IM.hs:import qualified XMonad.StackSet as S
Layout/SimpleFloat.hs:import qualified XMonad.StackSet as S
Layout/DwmStyle.hs:import XMonad.StackSet ( Stack (..) )
Layout/Tabbed.hs:import qualified XMonad.StackSet as S
Layout/Drawer.hs:import XMonad.StackSet as S
Prompt/Layout.hs:import XMonad.StackSet ( workspaces, layout )
Util/Dzen.hs:import XMonad.StackSet

If the former, then several of these need to be fixed or changed, I think.

-- 
gwern


More information about the xmonad mailing list