Skip to content

Commit a8063a4

Browse files
committed
Rename eitherP to choose
1 parent 54feafd commit a8063a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Either.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ either f _ (Left a) = f a
225225
either _ g (Right b) = g b
226226

227227
-- | Combine two alternatives.
228-
eitherP :: forall m a b. Alt m => m a -> m b -> m (Either a b)
229-
eitherP a b = Left <$> a <|> Right <$> b
228+
choose :: forall m a b. Alt m => m a -> m b -> m (Either a b)
229+
choose a b = Left <$> a <|> Right <$> b
230230

231231
-- | Returns `true` when the `Either` value was constructed with `Left`.
232232
isLeft :: forall a b. Either a b -> Boolean

0 commit comments

Comments
 (0)