Skip to content

Instantly share code, notes, and snippets.

@t0yv0
Created February 16, 2011 08:43
Show Gist options
  • Select an option

  • Save t0yv0/829048 to your computer and use it in GitHub Desktop.

Select an option

Save t0yv0/829048 to your computer and use it in GitHub Desktop.
class Functor f where
fmap :: (a -> b) -> f a -> f b
instance Functor [] where
fmap = map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment