Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

alios

By: a guest on Feb 16th, 2009  |  syntax: Haskell  |  size: 0.18 KB  |  views: 56  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data