give <&&> and <||> same fixity as && and ||
Suggestion by Daniel Trstenjak These are not currently mixed in my code base, so no real change.
This commit is contained in:
parent
133929eb8f
commit
21d8f96679
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,10 @@ ma <||> mb = ifM ma ( return True , mb )
|
|||
(<&&>) :: Monad m => m Bool -> m Bool -> m Bool
|
||||
ma <&&> mb = ifM ma ( mb , return False )
|
||||
|
||||
{- Same fixity as && and || -}
|
||||
infixr 3 (<&&>)
|
||||
infixr 2 (<||>)
|
||||
|
||||
{- Runs an action, passing its value to an observer before returning it. -}
|
||||
observe :: Monad m => (a -> m b) -> m a -> m a
|
||||
observe observer a = do
|
||||
|
|
Loading…
Add table
Reference in a new issue