Advertisement
Guest User

alios

a guest
Feb 16th, 2009
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {-# OPTIONS -XMultiParamTypeClasses #-}
  2.  
  3. module CI(D,f) where
  4.  
  5. class B b
  6.  
  7. class (B b) => A a b where
  8.     f :: b
  9.  
  10. data D = D
  11.  
  12. instance B D
  13.  
  14. instance A D D where
  15.     f = D
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement