concept define Functor in category idris

appears as: Defining Functor
Type-Driven Development with Idris

This is an excerpt from Manning's book Type-Driven Development with Idris.

Listing 12.17. Defining Functor, Applicative, and Monad implementations together (StateMonad.idr)