category-theory-presentation/categories/30_How/100_Functors/100_Non_Haskell_Hask_s_Functors.md
2013-02-28 16:49:12 +01:00

256 B

"Non Haskell" Hask's Functors

A simple basic example is the \(id_\Hask\) functor. It simply cannot be expressed as a couple (F,fmap) where

  • F::* -> *
  • fmap :: (a -> b) -> (F a) -> (F b)

Another example:

  • F(T)=Int
  • F(f)=\_->0