mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
Document both
.
This commit is contained in:
parent
391d102dcf
commit
b6ffeeba2a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user