HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulelinear-base-0.4.0Haskell2010

Data.Bifunctor.Linear.Internal.Bifunctor

  • 1 class
classclass Bifunctor (p :: Type -> Type -> Type) where
#

The Bifunctor class

Laws

If bimap is supplied, then bimap id id = id

Methods

  • bimap :: (a %1 -> b) -> (c %1 -> d) -> p a c %1 -> p b d
  • first :: (a %1 -> b) -> p a c %1 -> p b c
  • second :: (b %1 -> c) -> p a b %1 -> p a c
Instances2Bifunctor
  • Bifunctor EitherDefined in linear-base-0.4.0 · Data.Bifunctor.Linear.Internal.Bifunctor
  • Bifunctor Tuple2Defined in linear-base-0.4.0 · Data.Bifunctor.Linear.Internal.Bifunctor