xmonad-extras-0.10: Third party extensions for xmonad with wacky dependencies

Portabilityunportable
Stabilityunstable
MaintainerAdam Vogt <vogt.adam@gmail.com>

XMonad.Config.Alt.Internal

Contents

Description

Synopsis

Documentation

Running

runConfig :: (HCompose (HCons t t1) (HNil -> l2), HCompose l1 (m (XConfig (Choose Tall (Choose (Mirror Tall) Full))) -> Config (XConfig l)), LayoutClass l Window, HMap Snd l2 l1, Read (l Window), Monad m) => HCons t t1 -> IO ()Source

runConfig' :: (HCompose l (m a -> Config b), HCompose (HCons t t1) (HNil -> l1), HMap Snd l1 l, Monad m) => a -> HCons t t1 -> IO bSource

Actions

Use set, add, modify, modifyIO for most predefined fields in XConfig.

For constructing things to modify a config:

 insertInto action hold prec field v
  • action is an instance of Mode so you only need to write ModifyIO to describe how to access this field.
  • hold is HTrue if you don't want to overwrite a preexisting value at the same prec. This is for things that should be applied once-only.
  • field used with the Mode
  • v the value that is being updated (or a function if you use Modify or similar)

set :: (Ins2 b (HSucc (HSucc (HSucc (HSucc HZero)))) HFalse (Config (XConfig x) -> Config (XConfig y)) l l', Mode Set field e x y, HLt ll (HSucc (HSucc (HSucc (HSucc HZero)))) b, HLength l ll) => field -> e -> l -> l'Source

add :: (Ins2 b (HSucc (HSucc (HSucc (HSucc HZero)))) HFalse (Config (XConfig x) -> Config (XConfig y)) l l', Mode Add field e x y, HLt ll (HSucc (HSucc (HSucc (HSucc HZero)))) b, HLength l ll) => field -> e -> l -> l'Source

modify :: (Ins2 b (HSucc (HSucc (HSucc (HSucc HZero)))) HFalse (Config (XConfig x) -> Config (XConfig y)) l l', Mode Modify field e x y, HLt ll (HSucc (HSucc (HSucc (HSucc HZero)))) b, HLength l ll) => field -> e -> l -> l'Source

modifyIO :: (Ins2 b (HSucc (HSucc (HSucc (HSucc HZero)))) HFalse (Config (XConfig x) -> Config (XConfig y)) l l', Mode ModifyIO field e x y, HLt ll (HSucc (HSucc (HSucc (HSucc HZero)))) b, HLength l ll) => field -> e -> l -> l'Source

less useful

modifyIO' :: (Ins2 b n hold (Config (XConfig x) -> Config (XConfig y)) l l', Mode ModifyIO field e x y, HLt ll n b, HLength l ll) => hold -> n -> field -> e -> l -> l'Source

insertInto :: (Ins2 b n hold (Config (XConfig x) -> Config (XConfig y)) l l', Mode action field e x y, HLt ll n b, HLength l ll) => action -> hold -> n -> field -> e -> l -> l'Source

Things to modify

Special

data LayoutHook Source

Represent setting layouts and layout modifiers

Constructors

LayoutHook 

Instances

LayoutClass l' Window => Mode Set LayoutHook (l' Window) l l' 
(LayoutClass l Window, LayoutClass l' Window) => Mode Add LayoutHook (l' Window) l (Choose l' l)

Add means something else for layoutHook because there's no suitable mempty for the general instance of LayoutClass

Mode ModifyIO LayoutHook (l Window -> Config (m Window)) l m 
(Read (l Window), LayoutClass l Window, Read (l' Window), LayoutClass l' Window) => Mode Modify LayoutHook (l Window -> l' Window) l l' 

Others

data FocusFollowsMouse Source

Constructors

FocusFollowsMouse 

Instances

Fail (Expected Bool) => Mode ModifyIO FocusFollowsMouse x[ag0j] l[ag0i] l[ag0i] 
Fail (Expected Bool) => Mode Modify FocusFollowsMouse x[ag0k] l[ag0i] l[ag0i] 
Mode Set FocusFollowsMouse Bool l[ag0i] l[ag0i] 
Fail (Expected Bool) => Mode Set FocusFollowsMouse x[ag0l] l[ag0i] l[ag0i] 
Mode ModifyIO FocusFollowsMouse (Bool -> Config Bool) l[ag0i] l[ag0i] 
Mode Modify FocusFollowsMouse (Bool -> Bool) l[ag0i] l[ag0i] 

data StartupHook Source

Constructors

StartupHook 

Instances

Fail (Expected (X ())) => Mode ModifyIO StartupHook x[ag06] l[ag05] l[ag05] 
Fail (Expected (X ())) => Mode Modify StartupHook x[ag07] l[ag05] l[ag05] 
Fail (Expected (X ())) => Mode Set StartupHook x[ag08] l[ag05] l[ag05] 
Mode Set StartupHook (X ()) l[ag05] l[ag05] 
Mode ModifyIO StartupHook (X () -> Config (X ())) l[ag05] l[ag05] 
Mode Modify StartupHook (X () -> X ()) l[ag05] l[ag05] 

data LogHook Source

Constructors

LogHook 

Instances

Fail (Expected (X ())) => Mode ModifyIO LogHook x[afZT] l[afZS] l[afZS] 
Fail (Expected (X ())) => Mode Modify LogHook x[afZU] l[afZS] l[afZS] 
Fail (Expected (X ())) => Mode Set LogHook x[afZV] l[afZS] l[afZS] 
Mode Set LogHook (X ()) l[afZS] l[afZS] 
Mode ModifyIO LogHook (X () -> Config (X ())) l[afZS] l[afZS] 
Mode Modify LogHook (X () -> X ()) l[afZS] l[afZS] 

data BorderWidth Source

Constructors

BorderWidth 

Instances

Fail (Expected Dimension) => Mode ModifyIO BorderWidth x[afZG] l[afZF] l[afZF] 
Fail (Expected Dimension) => Mode Modify BorderWidth x[afZH] l[afZF] l[afZF] 
Fail (Expected Dimension) => Mode Set BorderWidth x[afZI] l[afZF] l[afZF] 
Mode Set BorderWidth Dimension l[afZF] l[afZF] 
Mode ModifyIO BorderWidth (Dimension -> Config Dimension) l[afZF] l[afZF] 
Mode Modify BorderWidth (Dimension -> Dimension) l[afZF] l[afZF] 

data MouseBindings Source

Constructors

MouseBindings 

Instances

Fail (Expected (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) => Mode ModifyIO MouseBindings x[afZt] l[afZs] l[afZs] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) => Mode Modify MouseBindings x[afZu] l[afZs] l[afZs] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) => Mode Set MouseBindings x[afZv] l[afZs] l[afZs] 
Mode ModifyIO MouseBindings ((XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) -> Config (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) l[afZs] l[afZs] 
Mode Modify MouseBindings ((XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) -> XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) l[afZs] l[afZs] 
Mode Set MouseBindings (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) l[afZs] l[afZs] 

data Keys Source

Constructors

Keys 

Instances

Fail (Expected (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) => Mode ModifyIO Keys x[afZg] l[afZf] l[afZf] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) => Mode Modify Keys x[afZh] l[afZf] l[afZf] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) => Mode Set Keys x[afZi] l[afZf] l[afZf] 
Mode ModifyIO Keys ((XConfig Layout -> Map (ButtonMask, KeySym) (X ())) -> Config (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) l[afZf] l[afZf] 
Mode Modify Keys ((XConfig Layout -> Map (ButtonMask, KeySym) (X ())) -> XConfig Layout -> Map (ButtonMask, KeySym) (X ())) l[afZf] l[afZf] 
Mode Set Keys (XConfig Layout -> Map (ButtonMask, KeySym) (X ())) l[afZf] l[afZf] 

data ModMask Source

Constructors

ModMask 

Instances

Fail (Expected KeyMask) => Mode ModifyIO ModMask x[afZ3] l[afZ2] l[afZ2] 
Fail (Expected KeyMask) => Mode Modify ModMask x[afZ4] l[afZ2] l[afZ2] 
Fail (Expected KeyMask) => Mode Set ModMask x[afZ5] l[afZ2] l[afZ2] 
Mode Set ModMask KeyMask l[afZ2] l[afZ2] 
Mode ModifyIO ModMask (KeyMask -> Config KeyMask) l[afZ2] l[afZ2] 
Mode Modify ModMask (KeyMask -> KeyMask) l[afZ2] l[afZ2] 

data Workspaces Source

Constructors

Workspaces 

Instances

Fail (Expected [String]) => Mode ModifyIO Workspaces x[afYQ] l[afYP] l[afYP] 
Fail (Expected [String]) => Mode Modify Workspaces x[afYR] l[afYP] l[afYP] 
Fail (Expected [String]) => Mode Set Workspaces x[afYS] l[afYP] l[afYP] 
Mode Set Workspaces [String] l[afYP] l[afYP] 
Mode ModifyIO Workspaces ([String] -> Config [String]) l[afYP] l[afYP] 
Mode Modify Workspaces ([String] -> [String]) l[afYP] l[afYP] 

data HandleEventHook Source

Constructors

HandleEventHook 

Instances

Fail (Expected (Event -> X All)) => Mode ModifyIO HandleEventHook x[afYD] l[afYC] l[afYC] 
Fail (Expected (Event -> X All)) => Mode Modify HandleEventHook x[afYE] l[afYC] l[afYC] 
Fail (Expected (Event -> X All)) => Mode Set HandleEventHook x[afYF] l[afYC] l[afYC] 
Mode ModifyIO HandleEventHook ((Event -> X All) -> Config (Event -> X All)) l[afYC] l[afYC] 
Mode Modify HandleEventHook ((Event -> X All) -> Event -> X All) l[afYC] l[afYC] 
Mode Set HandleEventHook (Event -> X All) l[afYC] l[afYC] 

data ManageHook Source

Constructors

ManageHook 

Instances

Fail (Expected ManageHook) => Mode ModifyIO ManageHook x[afYq] l[afYp] l[afYp] 
Fail (Expected ManageHook) => Mode Modify ManageHook x[afYr] l[afYp] l[afYp] 
Fail (Expected ManageHook) => Mode Set ManageHook x[afYs] l[afYp] l[afYp] 
Mode Set ManageHook ManageHook l[afYp] l[afYp] 
Mode ModifyIO ManageHook (ManageHook -> Config ManageHook) l[afYp] l[afYp] 
Mode Modify ManageHook (ManageHook -> ManageHook) l[afYp] l[afYp] 

data Terminal Source

Constructors

Terminal 

Instances

Fail (Expected String) => Mode ModifyIO Terminal x[afYd] l[afYc] l[afYc] 
Fail (Expected String) => Mode Modify Terminal x[afYe] l[afYc] l[afYc] 
Mode Set Terminal String l[afYc] l[afYc] 
Fail (Expected String) => Mode Set Terminal x[afYf] l[afYc] l[afYc] 
Mode ModifyIO Terminal (String -> Config String) l[afYc] l[afYc] 
Mode Modify Terminal (String -> String) l[afYc] l[afYc] 

data FocusedBorderColor Source

Constructors

FocusedBorderColor 

Instances

Fail (Expected String) => Mode ModifyIO FocusedBorderColor x[afY0] l[afXZ] l[afXZ] 
Fail (Expected String) => Mode Modify FocusedBorderColor x[afY1] l[afXZ] l[afXZ] 
Mode Set FocusedBorderColor String l[afXZ] l[afXZ] 
Fail (Expected String) => Mode Set FocusedBorderColor x[afY2] l[afXZ] l[afXZ] 
Mode ModifyIO FocusedBorderColor (String -> Config String) l[afXZ] l[afXZ] 
Mode Modify FocusedBorderColor (String -> String) l[afXZ] l[afXZ] 

data NormalBorderColor Source

Constructors

NormalBorderColor 

Instances

Fail (Expected String) => Mode ModifyIO NormalBorderColor x[afXN] l[afXM] l[afXM] 
Fail (Expected String) => Mode Modify NormalBorderColor x[afXO] l[afXM] l[afXM] 
Mode Set NormalBorderColor String l[afXM] l[afXM] 
Fail (Expected String) => Mode Set NormalBorderColor x[afXP] l[afXM] l[afXM] 
Mode ModifyIO NormalBorderColor (String -> Config String) l[afXM] l[afXM] 
Mode Modify NormalBorderColor (String -> String) l[afXM] l[afXM] 

Relatively private

You probably don't need these

Ordered Insertion into HLists like [(Nat,a)]

insLt :: (HSubtract a b n, HReplicateF n Id l', HAppend l1 l' l, HAppend l (HCons (t, t1) HNil) l'', HLength l1 b) => a -> t -> t1 -> l1 -> l''Source

insGeq :: (HCond t1 (t1, a -> b) (t, a -> c) e, HUpdateAtHNat n e l l', HLookupByHNat n l (t1, a -> b)) => n -> t -> (b -> c) -> l -> l'Source

class HBool hold => Ins2 b n hold f l l' | b n hold f l -> l' whereSource

utility class, so that we can use contexts that may not be satisfied, depending on the length of the accumulated list.

Methods

ins2 :: b -> n -> hold -> f -> l -> l'Source

Instances

(HLength l n, HSubtract a1 n a, HReplicateF a Id l', HAppend l l' l'', HAppend l'' (HCons (hold, e) HNil) l''1, HBool hold) => Ins2 HTrue a1 hold e l l''1

when l needs to be padded with id

(HLookupByHNat n l (t, a -> b), HUpdateAtHNat n z l l', HCond t (t, a -> b) (t1, a -> c) z, HBool t1) => Ins2 HFalse n t1 (b -> c) l l'

when l already has enough elements, just compose. Only when the existing HBool is HFalse

class Ins' n hold f l l' | n hold f l -> l' whereSource

Methods

ins' :: n -> hold -> f -> l -> l'Source

Instances

(HLength l ll, HLt ll n b, Ins2 b n hold f l l') => Ins' n hold f l l' 

ins :: (Ins2 b n HFalse (m a -> m b1) l l', HLt ll n b, HLength l ll, Monad m) => n -> (a -> m b1) -> l -> l'Source

Useful functions

class HCompose l f | l -> f whereSource

like foldr (.) id, but for a heteregenous list.

Methods

hComp :: l -> fSource

Instances

HCompose HNil (a -> a) 
HCompose r (a -> b) => HCompose (:*: (b -> c) r) (a -> c) 

data Snd Source

Constructors

Snd 

Instances

Apply Snd (a, b) b 

class HSubtract a b c | a b -> c whereSource

The difference between HNats. Clamped to HZero

Methods

hSubtract :: a -> b -> cSource

Instances

HNat a => HSubtract a HZero a 
HSubtract HZero b HZero 
(HNat a, HNat b, HSubtract a b c) => HSubtract (HSucc a) (HSucc b) c 

class HNat n => HReplicateF n e l | n e -> l whereSource

Methods

hReplicateF :: n -> e -> lSource

Instances

HReplicateF HZero e HNil 
(Apply e x y, HReplicateF n e r) => HReplicateF (HSucc n) e (:*: (HFalse, x -> y) r) 

class HPred' n n' | n -> n' whereSource

exactly like hPred, but accept HZero too

Methods

hPred' :: n -> n'Source

Instances

For overloading

class Mode action field e x y | action field e x -> y, action field x y -> e whereSource

Methods

m :: action -> field -> e -> XConfig x -> Config (XConfig y)Source

Instances

Fail (Expected Bool) => Mode ModifyIO FocusFollowsMouse x[ag0j] l[ag0i] l[ag0i] 
Fail (Expected (X ())) => Mode ModifyIO StartupHook x[ag06] l[ag05] l[ag05] 
Fail (Expected (X ())) => Mode ModifyIO LogHook x[afZT] l[afZS] l[afZS] 
Fail (Expected Dimension) => Mode ModifyIO BorderWidth x[afZG] l[afZF] l[afZF] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) => Mode ModifyIO MouseBindings x[afZt] l[afZs] l[afZs] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) => Mode ModifyIO Keys x[afZg] l[afZf] l[afZf] 
Fail (Expected KeyMask) => Mode ModifyIO ModMask x[afZ3] l[afZ2] l[afZ2] 
Fail (Expected [String]) => Mode ModifyIO Workspaces x[afYQ] l[afYP] l[afYP] 
Fail (Expected (Event -> X All)) => Mode ModifyIO HandleEventHook x[afYD] l[afYC] l[afYC] 
Fail (Expected ManageHook) => Mode ModifyIO ManageHook x[afYq] l[afYp] l[afYp] 
Fail (Expected String) => Mode ModifyIO Terminal x[afYd] l[afYc] l[afYc] 
Fail (Expected String) => Mode ModifyIO FocusedBorderColor x[afY0] l[afXZ] l[afXZ] 
Fail (Expected String) => Mode ModifyIO NormalBorderColor x[afXN] l[afXM] l[afXM] 
Fail (Expected Bool) => Mode Modify FocusFollowsMouse x[ag0k] l[ag0i] l[ag0i] 
Fail (Expected (X ())) => Mode Modify StartupHook x[ag07] l[ag05] l[ag05] 
Fail (Expected (X ())) => Mode Modify LogHook x[afZU] l[afZS] l[afZS] 
Fail (Expected Dimension) => Mode Modify BorderWidth x[afZH] l[afZF] l[afZF] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) => Mode Modify MouseBindings x[afZu] l[afZs] l[afZs] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) => Mode Modify Keys x[afZh] l[afZf] l[afZf] 
Fail (Expected KeyMask) => Mode Modify ModMask x[afZ4] l[afZ2] l[afZ2] 
Fail (Expected [String]) => Mode Modify Workspaces x[afYR] l[afYP] l[afYP] 
Fail (Expected (Event -> X All)) => Mode Modify HandleEventHook x[afYE] l[afYC] l[afYC] 
Fail (Expected ManageHook) => Mode Modify ManageHook x[afYr] l[afYp] l[afYp] 
Fail (Expected String) => Mode Modify Terminal x[afYe] l[afYc] l[afYc] 
Fail (Expected String) => Mode Modify FocusedBorderColor x[afY1] l[afXZ] l[afXZ] 
Fail (Expected String) => Mode Modify NormalBorderColor x[afXO] l[afXM] l[afXM] 
Mode Set FocusFollowsMouse Bool l[ag0i] l[ag0i] 
Fail (Expected Bool) => Mode Set FocusFollowsMouse x[ag0l] l[ag0i] l[ag0i] 
Fail (Expected (X ())) => Mode Set StartupHook x[ag08] l[ag05] l[ag05] 
Fail (Expected (X ())) => Mode Set LogHook x[afZV] l[afZS] l[afZS] 
Fail (Expected Dimension) => Mode Set BorderWidth x[afZI] l[afZF] l[afZF] 
Mode Set BorderWidth Dimension l[afZF] l[afZF] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) => Mode Set MouseBindings x[afZv] l[afZs] l[afZs] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) => Mode Set Keys x[afZi] l[afZf] l[afZf] 
Fail (Expected KeyMask) => Mode Set ModMask x[afZ5] l[afZ2] l[afZ2] 
Mode Set ModMask KeyMask l[afZ2] l[afZ2] 
Fail (Expected [String]) => Mode Set Workspaces x[afYS] l[afYP] l[afYP] 
Fail (Expected (Event -> X All)) => Mode Set HandleEventHook x[afYF] l[afYC] l[afYC] 
Fail (Expected ManageHook) => Mode Set ManageHook x[afYs] l[afYp] l[afYp] 
Mode Set ManageHook ManageHook l[afYp] l[afYp] 
Mode Set Terminal String l[afYc] l[afYc] 
Fail (Expected String) => Mode Set Terminal x[afYf] l[afYc] l[afYc] 
Mode Set FocusedBorderColor String l[afXZ] l[afXZ] 
Fail (Expected String) => Mode Set FocusedBorderColor x[afY2] l[afXZ] l[afXZ] 
Mode Set NormalBorderColor String l[afXM] l[afXM] 
Fail (Expected String) => Mode Set NormalBorderColor x[afXP] l[afXM] l[afXM] 
LayoutClass l' Window => Mode Set LayoutHook (l' Window) l l' 
Mode Set StartupHook (X ()) l[ag05] l[ag05] 
Mode Set LogHook (X ()) l[afZS] l[afZS] 
Mode Set Workspaces [String] l[afYP] l[afYP] 
(LayoutClass l Window, LayoutClass l' Window) => Mode Add LayoutHook (l' Window) l (Choose l' l)

Add means something else for layoutHook because there's no suitable mempty for the general instance of LayoutClass

Mode ModifyIO LayoutHook (l Window -> Config (m Window)) l m 
Mode ModifyIO FocusFollowsMouse (Bool -> Config Bool) l[ag0i] l[ag0i] 
Mode ModifyIO StartupHook (X () -> Config (X ())) l[ag05] l[ag05] 
Mode ModifyIO LogHook (X () -> Config (X ())) l[afZS] l[afZS] 
Mode ModifyIO BorderWidth (Dimension -> Config Dimension) l[afZF] l[afZF] 
Mode ModifyIO MouseBindings ((XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) -> Config (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) l[afZs] l[afZs] 
Mode ModifyIO Keys ((XConfig Layout -> Map (ButtonMask, KeySym) (X ())) -> Config (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) l[afZf] l[afZf] 
Mode ModifyIO ModMask (KeyMask -> Config KeyMask) l[afZ2] l[afZ2] 
Mode ModifyIO Workspaces ([String] -> Config [String]) l[afYP] l[afYP] 
Mode ModifyIO HandleEventHook ((Event -> X All) -> Config (Event -> X All)) l[afYC] l[afYC] 
Mode ModifyIO ManageHook (ManageHook -> Config ManageHook) l[afYp] l[afYp] 
Mode ModifyIO Terminal (String -> Config String) l[afYc] l[afYc] 
Mode ModifyIO FocusedBorderColor (String -> Config String) l[afXZ] l[afXZ] 
Mode ModifyIO NormalBorderColor (String -> Config String) l[afXM] l[afXM] 
(Read (l Window), LayoutClass l Window, Read (l' Window), LayoutClass l' Window) => Mode Modify LayoutHook (l Window -> l' Window) l l' 
Mode Modify FocusFollowsMouse (Bool -> Bool) l[ag0i] l[ag0i] 
Mode Modify StartupHook (X () -> X ()) l[ag05] l[ag05] 
Mode Modify LogHook (X () -> X ()) l[afZS] l[afZS] 
Mode Modify BorderWidth (Dimension -> Dimension) l[afZF] l[afZF] 
Mode Modify MouseBindings ((XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) -> XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) l[afZs] l[afZs] 
Mode Modify Keys ((XConfig Layout -> Map (ButtonMask, KeySym) (X ())) -> XConfig Layout -> Map (ButtonMask, KeySym) (X ())) l[afZf] l[afZf] 
Mode Modify ModMask (KeyMask -> KeyMask) l[afZ2] l[afZ2] 
Mode Modify Workspaces ([String] -> [String]) l[afYP] l[afYP] 
Mode Modify HandleEventHook ((Event -> X All) -> Event -> X All) l[afYC] l[afYC] 
Mode Modify ManageHook (ManageHook -> ManageHook) l[afYp] l[afYp] 
Mode Modify Terminal (String -> String) l[afYc] l[afYc] 
Mode Modify FocusedBorderColor (String -> String) l[afXZ] l[afXZ] 
Mode Modify NormalBorderColor (String -> String) l[afXM] l[afXM] 
Mode Set MouseBindings (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) l[afZs] l[afZs] 
Mode Set Keys (XConfig Layout -> Map (ButtonMask, KeySym) (X ())) l[afZf] l[afZf] 
Mode Set HandleEventHook (Event -> X All) l[afYC] l[afYC] 

data Add Source

Constructors

Add

the Mode instance combines the old value like new mappend old

Instances

(LayoutClass l Window, LayoutClass l' Window) => Mode Add LayoutHook (l' Window) l (Choose l' l)

Add means something else for layoutHook because there's no suitable mempty for the general instance of LayoutClass

data Set Source

Constructors

Set 

Instances

Mode Set FocusFollowsMouse Bool l[ag0i] l[ag0i] 
Fail (Expected Bool) => Mode Set FocusFollowsMouse x[ag0l] l[ag0i] l[ag0i] 
Fail (Expected (X ())) => Mode Set StartupHook x[ag08] l[ag05] l[ag05] 
Fail (Expected (X ())) => Mode Set LogHook x[afZV] l[afZS] l[afZS] 
Fail (Expected Dimension) => Mode Set BorderWidth x[afZI] l[afZF] l[afZF] 
Mode Set BorderWidth Dimension l[afZF] l[afZF] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) => Mode Set MouseBindings x[afZv] l[afZs] l[afZs] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) => Mode Set Keys x[afZi] l[afZf] l[afZf] 
Fail (Expected KeyMask) => Mode Set ModMask x[afZ5] l[afZ2] l[afZ2] 
Mode Set ModMask KeyMask l[afZ2] l[afZ2] 
Fail (Expected [String]) => Mode Set Workspaces x[afYS] l[afYP] l[afYP] 
Fail (Expected (Event -> X All)) => Mode Set HandleEventHook x[afYF] l[afYC] l[afYC] 
Fail (Expected ManageHook) => Mode Set ManageHook x[afYs] l[afYp] l[afYp] 
Mode Set ManageHook ManageHook l[afYp] l[afYp] 
Mode Set Terminal String l[afYc] l[afYc] 
Fail (Expected String) => Mode Set Terminal x[afYf] l[afYc] l[afYc] 
Mode Set FocusedBorderColor String l[afXZ] l[afXZ] 
Fail (Expected String) => Mode Set FocusedBorderColor x[afY2] l[afXZ] l[afXZ] 
Mode Set NormalBorderColor String l[afXM] l[afXM] 
Fail (Expected String) => Mode Set NormalBorderColor x[afXP] l[afXM] l[afXM] 
LayoutClass l' Window => Mode Set LayoutHook (l' Window) l l' 
Mode Set StartupHook (X ()) l[ag05] l[ag05] 
Mode Set LogHook (X ()) l[afZS] l[afZS] 
Mode Set Workspaces [String] l[afYP] l[afYP] 
Mode Set MouseBindings (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) l[afZs] l[afZs] 
Mode Set Keys (XConfig Layout -> Map (ButtonMask, KeySym) (X ())) l[afZf] l[afZf] 
Mode Set HandleEventHook (Event -> X All) l[afYC] l[afYC] 

data Modify Source

Constructors

Modify 

Instances

Fail (Expected Bool) => Mode Modify FocusFollowsMouse x[ag0k] l[ag0i] l[ag0i] 
Fail (Expected (X ())) => Mode Modify StartupHook x[ag07] l[ag05] l[ag05] 
Fail (Expected (X ())) => Mode Modify LogHook x[afZU] l[afZS] l[afZS] 
Fail (Expected Dimension) => Mode Modify BorderWidth x[afZH] l[afZF] l[afZF] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) => Mode Modify MouseBindings x[afZu] l[afZs] l[afZs] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) => Mode Modify Keys x[afZh] l[afZf] l[afZf] 
Fail (Expected KeyMask) => Mode Modify ModMask x[afZ4] l[afZ2] l[afZ2] 
Fail (Expected [String]) => Mode Modify Workspaces x[afYR] l[afYP] l[afYP] 
Fail (Expected (Event -> X All)) => Mode Modify HandleEventHook x[afYE] l[afYC] l[afYC] 
Fail (Expected ManageHook) => Mode Modify ManageHook x[afYr] l[afYp] l[afYp] 
Fail (Expected String) => Mode Modify Terminal x[afYe] l[afYc] l[afYc] 
Fail (Expected String) => Mode Modify FocusedBorderColor x[afY1] l[afXZ] l[afXZ] 
Fail (Expected String) => Mode Modify NormalBorderColor x[afXO] l[afXM] l[afXM] 
(Read (l Window), LayoutClass l Window, Read (l' Window), LayoutClass l' Window) => Mode Modify LayoutHook (l Window -> l' Window) l l' 
Mode Modify FocusFollowsMouse (Bool -> Bool) l[ag0i] l[ag0i] 
Mode Modify StartupHook (X () -> X ()) l[ag05] l[ag05] 
Mode Modify LogHook (X () -> X ()) l[afZS] l[afZS] 
Mode Modify BorderWidth (Dimension -> Dimension) l[afZF] l[afZF] 
Mode Modify MouseBindings ((XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) -> XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) l[afZs] l[afZs] 
Mode Modify Keys ((XConfig Layout -> Map (ButtonMask, KeySym) (X ())) -> XConfig Layout -> Map (ButtonMask, KeySym) (X ())) l[afZf] l[afZf] 
Mode Modify ModMask (KeyMask -> KeyMask) l[afZ2] l[afZ2] 
Mode Modify Workspaces ([String] -> [String]) l[afYP] l[afYP] 
Mode Modify HandleEventHook ((Event -> X All) -> Event -> X All) l[afYC] l[afYC] 
Mode Modify ManageHook (ManageHook -> ManageHook) l[afYp] l[afYp] 
Mode Modify Terminal (String -> String) l[afYc] l[afYc] 
Mode Modify FocusedBorderColor (String -> String) l[afXZ] l[afXZ] 
Mode Modify NormalBorderColor (String -> String) l[afXM] l[afXM] 

data ModifyIO Source

Constructors

ModifyIO 

Instances

Fail (Expected Bool) => Mode ModifyIO FocusFollowsMouse x[ag0j] l[ag0i] l[ag0i] 
Fail (Expected (X ())) => Mode ModifyIO StartupHook x[ag06] l[ag05] l[ag05] 
Fail (Expected (X ())) => Mode ModifyIO LogHook x[afZT] l[afZS] l[afZS] 
Fail (Expected Dimension) => Mode ModifyIO BorderWidth x[afZG] l[afZF] l[afZF] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) => Mode ModifyIO MouseBindings x[afZt] l[afZs] l[afZs] 
Fail (Expected (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) => Mode ModifyIO Keys x[afZg] l[afZf] l[afZf] 
Fail (Expected KeyMask) => Mode ModifyIO ModMask x[afZ3] l[afZ2] l[afZ2] 
Fail (Expected [String]) => Mode ModifyIO Workspaces x[afYQ] l[afYP] l[afYP] 
Fail (Expected (Event -> X All)) => Mode ModifyIO HandleEventHook x[afYD] l[afYC] l[afYC] 
Fail (Expected ManageHook) => Mode ModifyIO ManageHook x[afYq] l[afYp] l[afYp] 
Fail (Expected String) => Mode ModifyIO Terminal x[afYd] l[afYc] l[afYc] 
Fail (Expected String) => Mode ModifyIO FocusedBorderColor x[afY0] l[afXZ] l[afXZ] 
Fail (Expected String) => Mode ModifyIO NormalBorderColor x[afXN] l[afXM] l[afXM] 
Mode ModifyIO LayoutHook (l Window -> Config (m Window)) l m 
Mode ModifyIO FocusFollowsMouse (Bool -> Config Bool) l[ag0i] l[ag0i] 
Mode ModifyIO StartupHook (X () -> Config (X ())) l[ag05] l[ag05] 
Mode ModifyIO LogHook (X () -> Config (X ())) l[afZS] l[afZS] 
Mode ModifyIO BorderWidth (Dimension -> Config Dimension) l[afZF] l[afZF] 
Mode ModifyIO MouseBindings ((XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) -> Config (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) l[afZs] l[afZs] 
Mode ModifyIO Keys ((XConfig Layout -> Map (ButtonMask, KeySym) (X ())) -> Config (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) l[afZf] l[afZf] 
Mode ModifyIO ModMask (KeyMask -> Config KeyMask) l[afZ2] l[afZ2] 
Mode ModifyIO Workspaces ([String] -> Config [String]) l[afYP] l[afYP] 
Mode ModifyIO HandleEventHook ((Event -> X All) -> Config (Event -> X All)) l[afYC] l[afYC] 
Mode ModifyIO ManageHook (ManageHook -> Config ManageHook) l[afYp] l[afYp] 
Mode ModifyIO Terminal (String -> Config String) l[afYc] l[afYc] 
Mode ModifyIO FocusedBorderColor (String -> Config String) l[afXZ] l[afXZ] 
Mode ModifyIO NormalBorderColor (String -> Config String) l[afXM] l[afXM] 

newtype Config a Source

Constructors

Config (WriterT Warnings IO a) 

Instances

Monad Config 
MonadIO Config 
MonadWriter Warnings Config 
Mode ModifyIO LayoutHook (l Window -> Config (m Window)) l m 
Mode ModifyIO FocusFollowsMouse (Bool -> Config Bool) l[ag0i] l[ag0i] 
Mode ModifyIO StartupHook (X () -> Config (X ())) l[ag05] l[ag05] 
Mode ModifyIO LogHook (X () -> Config (X ())) l[afZS] l[afZS] 
Mode ModifyIO BorderWidth (Dimension -> Config Dimension) l[afZF] l[afZF] 
Mode ModifyIO MouseBindings ((XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) -> Config (XConfig Layout -> Map (ButtonMask, Button) (Window -> X ()))) l[afZs] l[afZs] 
Mode ModifyIO Keys ((XConfig Layout -> Map (ButtonMask, KeySym) (X ())) -> Config (XConfig Layout -> Map (ButtonMask, KeySym) (X ()))) l[afZf] l[afZf] 
Mode ModifyIO ModMask (KeyMask -> Config KeyMask) l[afZ2] l[afZ2] 
Mode ModifyIO Workspaces ([String] -> Config [String]) l[afYP] l[afYP] 
Mode ModifyIO HandleEventHook ((Event -> X All) -> Config (Event -> X All)) l[afYC] l[afYC] 
Mode ModifyIO ManageHook (ManageHook -> Config ManageHook) l[afYp] l[afYp] 
Mode ModifyIO Terminal (String -> Config String) l[afYc] l[afYc] 
Mode ModifyIO FocusedBorderColor (String -> Config String) l[afXZ] l[afXZ] 
Mode ModifyIO NormalBorderColor (String -> Config String) l[afXM] l[afXM] 

test :: IO ()Source

Verification that insertions happen in order

 (T1 (),"3")
 (T2 (T1 ()),"31")
 (T2 (T3 (T1 ())),"321")
 (T2 (T3a (T3 (T1 ()))),"3221")

module Data.HList