category-extras-0.53.6: Various modules and constructs inspired by category theoryContentsIndex
Control.Comonad.Cofree
Portabilityrank-2 types
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Description
Examples: type LV = Cofree Maybe type Stream = Cofree Identity
Documentation
type Cofree f = Fix (PCofree f)
runCofree :: Cofree f a -> (a, f (Cofree f a))
cofree :: a -> f (Cofree f a) -> Cofree f a
class (Functor f, Comonad w) => ComonadCofree f w | w -> f where
Methods
outCofree :: w a -> f (w a)
show/hide Instances
class ComonadCofree f w => RunComonadCofree f w | w -> f where
Methods
anaCofree :: Functor f => (a -> c) -> (a -> f a) -> a -> w c
show/hide Instances
Produced by Haddock version 2.1.0