1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00

Document both.

This commit is contained in:
Rob Rix 2016-02-29 01:31:45 -05:00
parent 391d102dcf
commit b6ffeeba2a

View File

@ -3,6 +3,7 @@ module Data.Functor.Both where
newtype Both a = Both { runBoth :: (a, a) }
deriving (Eq, Show, Functor, Foldable, Traversable)
-- | Given two operands returns a functor operating on `Both`. This is a curried synonym for Both.
both :: a -> a -> Both a
both = curry Both