mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-04 06:01:53 -07:00
Haddock formatting for a type (-->)
This commit is contained in:
@@ -48,7 +48,8 @@ composeAll = mconcat
|
|||||||
infix 0 -->
|
infix 0 -->
|
||||||
|
|
||||||
-- | @p --> x@. If @p@ returns 'True', execute the 'ManageHook'.
|
-- | @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
|
(-->) :: (Monad m, Monoid a) => m Bool -> m a -> m a
|
||||||
p --> f = p >>= \b -> if b then f else return mempty
|
p --> f = p >>= \b -> if b then f else return mempty
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user