Skip to content

Commit 0eced08

Browse files
committed
Fix partitionDefault/eitherBool
1 parent 75d9ae3 commit 0eced08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Filterable.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class (Functor f) <= Filterable f where
5555
-- | Upgrade a boolean-style predicate to an either-style predicate mapping.
5656
eitherBool :: forall a.
5757
(a -> Boolean) -> a -> Either a a
58-
eitherBool p x = if p x then Left x else Right x
58+
eitherBool p x = if p x then Right x else Left x
5959

6060
-- | A default implementation of `partition` using `partitionMap`.
6161
partitionDefault :: forall f a. Filterable f =>

0 commit comments

Comments
 (0)