Guest User

Untitled

a guest
Jan 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {-# LANGUAGE NoImplicitPrelude #-}
  2. import List --for test
  3.  
  4. class Functor f where  
  5.     fmap :: (a -> b) -> f a -> f b
  6.  
  7. --Test. Works for me.
  8. instance Functor List where
  9.     fmap = map
Add Comment
Please, Sign In to add comment