bifunctors-0.1.3.1: Haskell 98 bifunctors

Data.Bifunctor

Description

Synopsis

class Bifunctor p whereSource

Minimal definition either bimap or first and second

bimap

first

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

Instances