[Haskell-beginners] Parametrizing [] as an instance of the Functor type class

Daniel Trstenjak daniel.trstenjak at gmail.com
Thu Dec 31 13:35:36 UTC 2015


On Thu, Dec 31, 2015 at 01:06:18PM +0000, Olumide wrote:
> Why does 'f' not appear in this expression?, considering that Functor is
> defined as

   instance Functor [] where
      fmap = map

is the eta reduced - search for eta reduction for the details - of a
version like:

   instance Functor [] where
      fmap g f = map g f


Greetings,
Daniel


More information about the Beginners mailing list