We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54feafd commit a8063a4Copy full SHA for a8063a4
src/Data/Either.purs
@@ -225,8 +225,8 @@ either f _ (Left a) = f a
225
either _ g (Right b) = g b
226
227
-- | 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
+choose :: forall m a b. Alt m => m a -> m b -> m (Either a b)
+choose a b = Left <$> a <|> Right <$> b
230
231
-- | Returns `true` when the `Either` value was constructed with `Left`.
232
isLeft :: forall a b. Either a b -> Boolean
0 commit comments