Util.Run, Hooks.DynamicLog: re-export hPutStrLn and hPutStr from Util.Run for convenience, and update DynamicLog documentation to show proper imports

This commit is contained in:
Brent Yorgey
2008-03-28 20:54:46 +00:00
parent bc0851f52a
commit a09ed70091
3 changed files with 5 additions and 2 deletions

View File

@@ -20,7 +20,6 @@ module XMonad.Config.Arossato
) where
import qualified Data.Map as M
import System.IO (hPutStrLn)
import XMonad hiding ( (|||) )
import qualified XMonad.StackSet as W

View File

@@ -101,6 +101,8 @@ import XMonad.Hooks.UrgencyHook
-- appropriately, either by putting it in your @.xsession@ or similar
-- file, or by using @spawnPipe@ in your @main@ function, for example:
--
-- > import XMonad.Util.Run -- for spawnPipe and hPutStrLn
-- >
-- > main = do
-- > h <- spawnPipe "xmobar -options -foo -bar"
-- > xmonad $ defaultConfig {

View File

@@ -25,7 +25,9 @@ module XMonad.Util.Run (
runInTerm,
safeRunInTerm,
seconds,
spawnPipe
spawnPipe,
hPutStr, hPutStrLn -- re-export for convenience
) where
import System.Posix.IO