Module

Data.Functor.Mu

Package
purescript-fixed-points
Repository
purescript-contrib/purescript-fixed-points

#Mu Source

newtype Mu f

Mu f is the least fixed point of a functor f, when it exists.

Constructors

Instances

#roll Source

roll :: forall f. f (Mu f) -> Mu f

#unroll Source

unroll :: forall f. Mu f -> f (Mu f)

#transMu Source

transMu :: forall f g. Functor g => f ~> g -> Mu f -> Mu g

Rewrites a tree along a natural transformation.