bifunctors-0.1.1.1: Haskell 98 bifunctors

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>

Data.Bifunctor

Description

 

Synopsis

Documentation

class Bifunctor p whereSource

Minimal definition either bimap or first and second

Methods

bimap :: (a -> b) -> (c -> d) -> p a c -> p b dSource

first :: (a -> b) -> p a c -> p b cSource

second :: (b -> c) -> p a b -> p a cSource