From 5df8e0f8dedcf0feb1a7d4d5aab5ce10818f9030 Mon Sep 17 00:00:00 2001 From: Adam Vogt Date: Fri, 27 May 2011 05:28:54 +0200 Subject: X.A.AppendFile documentation fix. Ignore-this: 1ee126ddba1b06d07fba86ca43f74ab8 Forgotten > means haddock complained (and generated incorrect output). More controversially I reworded a sentence and use do notation. darcs-hash:20110527032854-1499c-b161b4dbab152c06532e3f2cb7d1922987123aa3.gz --- XMonad/Prompt/AppendFile.hs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/XMonad/Prompt/AppendFile.hs b/XMonad/Prompt/AppendFile.hs index 0adcd26..945c8de 100644 --- a/XMonad/Prompt/AppendFile.hs +++ b/XMonad/Prompt/AppendFile.hs @@ -47,10 +47,12 @@ import Control.Exception.Extensible (bracket) -- example, to preface notes with the time they were made, one could write a -- binding like -- --- > , ((modm .|. controlMask, xK_n), spawn ("date>>"++"/home/me/NOTES") >> appendFilePrompt --- defaultXPConfig "/home/me/NOTES" +-- > , ((modm .|. controlMask, xK_n), do +-- > spawn ("date>>"++"/home/me/NOTES") +-- > appendFilePrompt defaultXPConfig "/home/me/NOTES" +-- > ) -- --- (And vice-versa to append the time instead.) +-- (Put the spawn on the line after the prompt to append the time instead.) -- -- For detailed instructions on editing your key bindings, see -- "XMonad.Doc.Extending#Editing_key_bindings". -- cgit v1.2.3