hask.Data.Functor – The Data.Functor

class hask.Data.Functor.Functor[source]

The Functor class is used for types that can be mapped over. Instances of Functor should satisfy the following laws:

fmap(id)  ==  id
fmap(f * g)  ==  fmap(f * (fmap g))

Attributes:

  • fmap
  • __rmul__

Minimal complete definition:

  • fmap