Merge pull request #25 from iblech/patch-1

Fix tiny markup typo
This commit is contained in:
Brent Yorgey 2015-12-18 14:11:11 -06:00
commit cc7ddcfa60

View File

@ -49,12 +49,12 @@ import XMonad.Prompt
-- @fireEmployee@ action, like so: -- @fireEmployee@ action, like so:
-- --
-- > firingPrompt :: X () -- > firingPrompt :: X ()
-- > firingPrompt = inputPrompt defaultXPConfig \"Fire\" ?+ fireEmployee -- > firingPrompt = inputPrompt defaultXPConfig "Fire" ?+ fireEmployee
-- --
-- If @employees@ contains a list of all his employees, he could also -- If @employees@ contains a list of all his employees, he could also
-- create an autocompleting version, like this: -- create an autocompleting version, like this:
-- --
-- > firingPrompt' = inputPromptWithCompl defaultXPConfig \"Fire\" -- > firingPrompt' = inputPromptWithCompl defaultXPConfig "Fire"
-- > (mkComplFunFromList employees) ?+ fireEmployee -- > (mkComplFunFromList employees) ?+ fireEmployee
-- --
-- Now all he has to do is add a keybinding to @firingPrompt@ (or -- Now all he has to do is add a keybinding to @firingPrompt@ (or
@ -112,4 +112,4 @@ infixr 1 ?+
-- with input prompts. If you find a more general use for it and -- with input prompts. If you find a more general use for it and
-- want to move it to a different module, be my guest. -- want to move it to a different module, be my guest.
(?+) :: (Monad m) => m (Maybe a) -> (a -> m ()) -> m () (?+) :: (Monad m) => m (Maybe a) -> (a -> m ()) -> m ()
x ?+ k = x >>= maybe (return ()) k x ?+ k = x >>= maybe (return ()) k