[Haskell-cafe] Help with Type Class

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Mar 1 05:53:23 EST 2006


Hello Alson,

Wednesday, March 1, 2006, 3:26:44 AM, you wrote:

AK>   class CollectionClass c e where

this works with -fglasgow-exts :

class CollectionClass c e where
  toList :: c e -> [e]

data Array i e = Array i i

instance CollectionClass (Array i) e where
  toList a = []


btw, see chapter 7.1.1 in the
http://cvs.haskell.org/Hugs/pages/hugsman/exts.html
  

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list