Wrapping the empty string yields the empty string

This commit is contained in:
Spencer Janssen
2007-10-18 00:15:42 +00:00
parent e4416696c1
commit 30e99281b2

View File

@@ -125,7 +125,8 @@ pprWindowSetXinerama ws = "[" ++ unwords onscreen ++ "] " ++ unwords offscreen
. sortBy (comparing S.tag) $ S.hidden ws
wrap :: String -> String -> String -> String
wrap l r m = l ++ m ++ r
wrap l r "" = ""
wrap l r m = l ++ m ++ r
-- | Intersperse spaces, filtering empty words.
unwords' :: [String] -> String