
[persist-togglehook-options
Ben Boeckel <mathstuf@gmail.com>**20120311050143
 Ignore-this: 580bacb35b617c1198f01c5a7c0d3fef
 
 Save the state of ToggleHook options over a restart.
] {
hunk ./XMonad/Hooks/ToggleHook.hs 66
 
 {- The current state is kept here -}
 
-data HookState = HookState { hooks :: Map String (Bool, Bool) } deriving (Typeable)
+data HookState = HookState { hooks :: Map String (Bool, Bool) } deriving (Typeable, Read, Show)
 
 instance ExtensionClass HookState where
     initialValue = HookState empty
hunk ./XMonad/Hooks/ToggleHook.hs 70
+    extensionType = PersistentExtension
 
 modify' :: String -> ((Bool, Bool) -> (Bool, Bool)) -> X ()
 modify' n f = XS.modify (HookState . setter . hooks)
}

