idris-0.9.14.1: libs/prelude/Prelude/Functor.idr
module Prelude.Functor
import Prelude.Basics
||| Functors
||| @ f the action of the functor on objects
class Functor (f : Type -> Type) where
||| The action of the functor on morphisms
||| @ f the functor
||| @ m the morphism
map : (m : a -> b) -> f a -> f b
instance Functor id where
map f a = f a