Use explicit 'bool' import.

This commit is contained in:
Stephen Diehl
2016-10-14 14:06:57 +01:00
parent a86046b654
commit 860f74b3c2
+2 -3
View File
@@ -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)