Module Data.Functor.Compose

This simple module defines the compose functor known from Haskell's base libraries. The compose functor is the composition of two functors which always is a functor too.

Exported Datatypes:

Exported Datatypes


newtype Compose f g a

The compose functor is the composition of two functors which always is a functor too.

Constructor:

Compose :: (f (g a)) -> Compose f g a

Fields:

  • getCompose :: (f (g a))

Known instances: