HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.Utils.Tuple

  • 1 type
  • 13 values
  • PackageAgda-2.7.0.1
  • Exports14
  • LanguageHaskell2010
  • LicenceMIT
  • SourceTuple.hs
value(-*-) :: (a -> c) -> (b -> d) -> (a, b) -> (c, d)
#

Bifunctoriality for pairs.

valuemapFst :: (a -> c) -> (a, b) -> (c, b)
#
mapFst f = f -*- id
valuemapSnd :: (b -> d) -> (a, b) -> (a, d)
#
mapSnd g = id -*- g
value(/\) :: (a -> b) -> (a -> c) -> a -> (b, c)
#

Lifted pairing.

valuefst3 :: (a, b, c) -> a
#
valuesnd3 :: (a, b, c) -> b
#
valuethd3 :: (a, b, c) -> c
#
valueswap :: (a, b) -> (b, a)
#

Swap the components of a pair.

valueuncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d
#
valueuncurry4 :: (a -> b -> c -> d -> e) -> (a, b, c, d) -> e
#
datadata Pair a
#

Constructors

Instances5Functor, Applicative, Foldable, Traversable, Eq