
New patches:

[ssh-global-known-hosts
Brandon S Allbery KF8NH <allbery@ece.cmu.edu>**20070909222432
 Add support for global ssh known hosts file, which is checked for via
 $SSH_KNOWN_HOSTS or a standard list of locations.  This is stripped of
 comments and hashed hosts, combined with the local hosts file (which is
 trated the same way), and duplicates eliminated.
] {
hunk ./SshPrompt.hs 28
+import Data.List
+import Data.Maybe
hunk ./SshPrompt.hs 58
- 
+
hunk ./SshPrompt.hs 60
-sshComplList = do
+sshComplList =  (nub . sort) `fmap` liftM2 (++) sshComplListLocal sshComplListGlobal 
+
+sshComplListLocal :: IO [String]
+sshComplListLocal = do
hunk ./SshPrompt.hs 65
-  let kh = h ++ "/.ssh/known_hosts"
+  sshComplListFile $ h ++ "/.ssh/known_hosts"
+ 
+sshComplListGlobal :: IO [String]
+sshComplListGlobal = do
+  env <- getEnv "SSH_KNOWN_HOSTS" `catch` (\_ -> return "/nonexistent")
+  fs <- mapM fileExists [ env
+                        , "/usr/local/etc/ssh/ssh_known_hosts"
+                        , "/usr/local/etc/ssh_known_hosts"
+                        , "/etc/ssh/ssh_known_hosts"
+                        , "/etc/ssh_known_hosts"
+                        ]
+  case catMaybes fs of
+    []    -> return []
+    (f:_) -> sshComplListFile' f
+
+sshComplListFile :: String -> IO [String]
+sshComplListFile kh = do
hunk ./SshPrompt.hs 83
-  if f then do l <- readFile kh
-               return $ map (takeWhile (/= ',') . concat . take 1 . words) (lines l)
+  if f then sshComplListFile' kh
hunk ./SshPrompt.hs 86
+sshComplListFile' :: String -> IO [String]
+sshComplListFile' kh = do
+  l <- readFile kh
+  return $ map (takeWhile (/= ',') . concat . take 1 . words)
+         $ filter nonComment
+         $ lines l
+
+fileExists :: String -> IO (Maybe String)
+fileExists kh = do
+  f <- doesFileExist kh
+  if f then return $ Just kh
+       else return Nothing
+
+nonComment :: String -> Bool
+nonComment []      = False
+nonComment ('#':_) = False
+nonComment ('|':_) = False -- hashed, undecodeable
+nonComment _       = True
+
}

Context:

[Unify Drag(UpDown)Pane
Karsten Schoelzel <kuser@gmx.de>**20070904210312] 
[add function and comment assisting use in resizing the screen.
David Roundy <droundy@darcs.net>**20070906125543] 
[Add FloatKeys for moving and resizing of floating windows with the keyboard
Karsten Schoelzel <kuser@gmx.de>**20070905212531] 
[Fix FlexibleResize for change in applySizeHints
Karsten Schoelzel <kuser@gmx.de>**20070905193926] 
[make dragPane handle thinner.
David Roundy <droundy@darcs.net>**20070905124139] 
[cleanup in WorkspaceDir.
David Roundy <droundy@darcs.net>**20070827185833] 
[new SetWMName module, useful for working around problems running Java GUI applications.
Ivan Tarasov <Ivan.Tarasov@gmail.com>**20070826004411] 
[remove LayoutHooks module (which is unused).
David Roundy <droundy@darcs.net>**20070823154520] 
[cleanup in DwmPromote.
David Roundy <droundy@darcs.net>**20070823155437] 
[cleanup in ViewPrev.
David Roundy <droundy@darcs.net>**20070823155405] 
[clean up CopyWindow.
David Roundy <droundy@darcs.net>**20070823155912] 
[Add CycleWS to MetaModule
Spencer Janssen <sjanssen@cse.unl.edu>**20070905203137] 
[CycleWS: a couple of simple functions to cycle between workspaces
Andrea Rossato <andrea.rossato@unibz.it>**20070821061132] 
[make Contrib use WorkspaceId = type String.
David Roundy <droundy@darcs.net>**20070820113813] 
[Add HintedTile docstring
Spencer Janssen <sjanssen@cse.unl.edu>**20070905200310] 
[Docstring parser for generating xmonad build configs with default settings for extensions
Alex Tarkovsky <alextarkovsky@gmail.com>**20070905200128] 
[TAG 0.3
Spencer Janssen <sjanssen@cse.unl.edu>**20070905022947] 
[docs not generated in DragPane.hs
Don Stewart <dons@cse.unsw.edu.au>**20070904232447] 
[HintedTile typo
Spencer Janssen <sjanssen@cse.unl.edu>**20070904202804] 
[HintedTile
Spencer Janssen <sjanssen@cse.unl.edu>**20070904202219] 
[Doc fixes for DragPane
Spencer Janssen <sjanssen@cse.unl.edu>**20070904201847] 
[XPrompt: a very long string in the completion list can lead to a division by zero
Andrea Rossato <andrea.rossato@unibz.it>**20070830141524] 
[XPrompt.hs: remove debugging bits
Andrea Rossato <andrea.rossato@unibz.it>**20070828081235] 
[make code more compact in XPrompt.
David Roundy <droundy@darcs.net>**20070827191830] 
[XPrompt: just code formatting
Andrea Rossato <andrea.rossato@unibz.it>**20070822193220] 
[fix bug leading to early exit in XPrompt.
David Roundy <droundy@darcs.net>**20070827185858] 
[fix bug where we draw divider for DragPane even if there's just one window