summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vogt <vogt.adam@gmail.com>2011-05-24 03:51:35 +0200
committerAdam Vogt <vogt.adam@gmail.com>2011-05-24 03:51:35 +0200
commit06893c2505abc8cd99dd20ce242545b2bad1c980 (patch)
treec29799ef8a329cfae7e34abaf031c1f098dbeef5
parent702686e5dadd21290c3213477dab5ff9c041891f (diff)
downloadmetatile-06893c2505abc8cd99dd20ce242545b2bad1c980.tar
metatile-06893c2505abc8cd99dd20ce242545b2bad1c980.zip
Haddock formatting for a type (-->)
Ignore-this: 1d5ef3e32540bbfbf60578858895d7c darcs-hash:20110524015135-1499c-391404d33d5cdb8a5444c8bd016369eb033308c2
-rw-r--r--XMonad/ManageHook.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/XMonad/ManageHook.hs b/XMonad/ManageHook.hs
index b96933e..856c742 100644
--- a/XMonad/ManageHook.hs
+++ b/XMonad/ManageHook.hs
@@ -48,7 +48,8 @@ composeAll = mconcat
infix 0 -->
-- | @p --> x@. If @p@ returns 'True', execute the 'ManageHook'.
--- (-->) :: Monoid m => Query Bool -> Query m -> Query m
+--
+-- > (-->) :: Monoid m => Query Bool -> Query m -> Query m -- a simpler type
(-->) :: (Monad m, Monoid a) => m Bool -> m a -> m a
p --> f = p >>= \b -> if b then f else return mempty