[Xmonad] a patch for 6.4 users

Daniel Wagner wagnerd at stanford.edu
Thu May 31 17:13:44 EDT 2007


Hello,
I copied GHC 6.6's instance of Read, and thought I'd save other 6.4 
users from having to dig around for it.
~d
-------------- next part --------------

New patches:

[add a Read instance for Map
daniel at wagner-home.com**20070531210704
 This adds an instance of Read for Maps.  If you have GHC 6.4, see the README for how to enable 
 it; otherwise, this shouldn't affect you.
] {
hunk ./README 56
+
+Note: If you are using GHC 6.4, you will need to add a line to StackSet.hs.  At
+      the end of the list of imports, add
+
+            import ReadMap ()
+
+      to provide GHC with an instance of Read for Data.Map.
addfile ./ReadMap.hs
hunk ./ReadMap.hs 1
+module ReadMap where
+
+-- stolen from GHC 6.6 sources
+
+import Data.Map
+import Text.Read
+import GHC.Read
+
+instance (Ord k, Read k, Read e) => Read (Map k e) where
+  readPrec = parens $ prec 10 $ do
+    Ident "fromList" <- lexP
+    xs <- readPrec
+    return (fromList xs)
+
+  readListPrec = readListPrecDefault
}

Context:

[Revert accidental change to border color
Spencer Janssen <sjanssen at cse.unl.edu>**20070531145509] 
[comments on why fullscreen tiling doesn't work with `implicit' floating
Don Stewart <dons at cse.unsw.edu.au>**20070531090537] 
[clean up mouse code a bit
Don Stewart <dons at cse.unsw.edu.au>**20070531085308] 
[first shot at a floating layer
Jason Creighton <jcreigh at gmail.com>**20070531044733
 
 This is a first attempting at a floating layer:
 
 mod-button1: move window
 mod-button2: swapMaster
 mod-button3: resize window
 
 mod-t: make floating window tiled again
 
 Moving or resizing a window automatically makes it floating.
 
 Known issues:
 
 Hard to manage stacking order. You can promote a window to move it to the top,
 (which you can do with mod-button2) but it should be easier than that.
 
 Moving a window by dragging it to a different Xinerama screen does not move it
 to that workspace.
 
 Code is ugly.
] 
[remove LOC cap (but still print count after tests)
Jason Creighton <jcreigh at gmail.com>**20070531043417] 
[TAG 0.2
Spencer Janssen <sjanssen at cse.unl.edu>**20070531010004] 
Patch bundle hash:
a81ee5c5006c3eaf508e8b9ea2610874ece3ee19


More information about the Xmonad mailing list