Is there anyway to make a 'subtype' of lists? I have a type
that is essentially a list,but I want to be able to overide
'show' for example. So in order to do that, I have to leave
the world of type synonyms:

newtype SS = SS [Int]

Now I can override show for my newtype, but
unfortunately , I cant overide 'take' 'drop' etc...so
I have to rewrite new versions 'sstake, ssdrop' that does
nothing but peel the wrapper off. Ok, so is there
any nice way to do this? (In the meantime, I just abandoned
overiding show, and instead defined my own 'ssshow'

Cheers!


+++++++++++++++++++++++++++++++++++++++++++++++++
Ron Legere  -- http://www.its.caltech.edu/~legere
Caltech Quantum Optics
MC 12-33
Pasadena CA 91125
626-395-8343
FAX: 626-793-9506
+++++++++++++++++++++++++++++++++++++++++++++++++





Reply via email to