semigroupoids-3.0: Haskell 98 semigroupoids: Category sans id

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Infered

Data.Functor.Extend

Contents

Description

 

Synopsis

$definition

class Functor w => Extend w whereSource

Methods

duplicated :: w a -> w (w a)Source

 duplicate = extend id
 fmap (fmap f) . duplicate = duplicate . fmap f

extended :: (w a -> b) -> w a -> w bSource

 extend f  = fmap f . duplicate