1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00

Restore deleted comment.

This commit is contained in:
Patrick Thomson 2019-02-05 13:54:07 -05:00
parent ba2a270072
commit 5f719f7d17

View File

@ -80,6 +80,7 @@ maybeM :: Applicative f => f a -> Maybe a -> f a
maybeM f = maybe f pure
{-# INLINE maybeM #-}
-- Promote a function to either-applicatives.
eitherM :: Applicative f => (a -> f b) -> Either a b -> f b
eitherM f = either f pure
{-# INLINE eitherM #-}