category-extras-0.44.1: Various modules and constructs inspired by category theory.

Portabilityrank-2 types
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>

Control.Comonad.Cofree

Description

 

Documentation

type CofreeB f a b = BiffB (,) Identity f a bSource

outCofree :: Cofree f a -> f (Cofree f a)Source

runCofree :: Cofree f a -> (a, f (Cofree f a))Source

anaCofree :: Functor f => (a -> c) -> (a -> f a) -> a -> Cofree f cSource

cofree :: a -> f (Cofree f a) -> Cofree f aSource