Guest User

Untitled

a guest
Jan 15th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. class Functor f where
  2. type FunctorConstraint f x :: Constraint
  3. type FunctorConstraint f x = ()
  4. fmap :: (FunctorConstraint f a, FunctorConstraint f b) => (a -> b) -> f a -> f b
  5.  
  6. instance Functor VU.Vector where
  7. type FunctorConstraint VU.Vector x = VU.Unbox x
  8. fmap = VU.map
Add Comment
Please, Sign In to add comment