aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Util/XSelection.hs
diff options
context:
space:
mode:
authorBrent Yorgey <byorgey@cis.upenn.edu>2009-01-02 20:43:57 +0100
committerBrent Yorgey <byorgey@cis.upenn.edu>2009-01-02 20:43:57 +0100
commit66cebb70897fcbc8038c21231198558a783ff020 (patch)
tree96b6ae662f9f5029b99f482f82f30f3dd1c44d0a /XMonad/Util/XSelection.hs
parent41f3c4a36d6ef5c376f411c32fcdf7fc6eaf550a (diff)
downloadXMonadContrib-66cebb70897fcbc8038c21231198558a783ff020.tar.gz
XMonadContrib-66cebb70897fcbc8038c21231198558a783ff020.tar.xz
XMonadContrib-66cebb70897fcbc8038c21231198558a783ff020.zip
X.U.XSelection: get rid of warning about missing newline, add Haddock link
darcs-hash:20090102194357-1e371-df23f1646a97cc1a2a0b8bd252d0c3b0e7eeef85.gz
Diffstat (limited to 'XMonad/Util/XSelection.hs')
-rw-r--r--XMonad/Util/XSelection.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/XMonad/Util/XSelection.hs b/XMonad/Util/XSelection.hs
index 1328ab7..9ecb991 100644
--- a/XMonad/Util/XSelection.hs
+++ b/XMonad/Util/XSelection.hs
@@ -175,9 +175,9 @@ promptSelection = unsafePromptSelection
safePromptSelection app = join $ io $ liftM (safeSpawn app) getSelection
unsafePromptSelection app = join $ io $ liftM unsafeSpawn $ fmap (\x -> app ++ " " ++ x) getSelection
-{- | A wrapper around promptSelection and its safe variant. They take two parameters, the first is a function that transforms strings, and the second is the application to run. The transformer essentially transforms the selection in X.
+{- | A wrapper around 'promptSelection' and its safe variant. They take two parameters, the first is a function that transforms strings, and the second is the application to run. The transformer essentially transforms the selection in X.
One example is to wrap code, such as a command line action copied out of the browser to be run as '"sudo" ++ cmd' or '"su - -c \"" ++ cmd ++ "\"".
-}
transformPromptSelection, transformSafePromptSelection :: (String -> String) -> String -> X ()
transformPromptSelection f app = join $ io $ liftM (safeSpawn app) (fmap f getSelection)
-transformSafePromptSelection f app = join $ io $ liftM unsafeSpawn $ fmap (\x -> app ++ " " ++ x) (fmap f getSelection) \ No newline at end of file
+transformSafePromptSelection f app = join $ io $ liftM unsafeSpawn $ fmap (\x -> app ++ " " ++ x) (fmap f getSelection)