foundation-0.0.23: Alternative prelude with batteries and no dependencies

License BSD-style Vincent Hanquez experimental portable Safe Haskell2010

Foundation.Class.Bifunctor

Description

Formally, the class Bifunctor represents a bifunctor from Hask -> Hask.

Intuitively it is a bifunctor where both the first and second arguments are covariant.

You can define a Bifunctor by either defining bimap or by defining both first and second.