Use explicit 'bool' import.
This commit is contained in:
+2
-3
@@ -406,11 +406,10 @@ pass :: Applicative f => f ()
|
||||
pass = pure ()
|
||||
|
||||
guarded :: (Alternative f) => (a -> Bool) -> a -> f a
|
||||
guarded p x = bool empty (pure x) (p x)
|
||||
guarded p x = X.bool empty (pure x) (p x)
|
||||
|
||||
guardedA :: (Functor f, Alternative t) => (a -> f Bool) -> a -> f (t a)
|
||||
guardedA p x = bool empty (pure x) <$> p x
|
||||
|
||||
guardedA p x = X.bool empty (pure x) <$> p x
|
||||
|
||||
show :: (Show a, StringConv String b) => a -> b
|
||||
show x = toS (PBase.show x)
|
||||
|
||||
Reference in New Issue
Block a user