> >     class ShowType a where
> >         showType :: a -> String
> 
> Or you can do what hbc has done for donkey's years and
> include 'showType' in Show.

Incidentally, nhc98 also has had 'showType' in class Show since the
year dot - only Hugs and ghc lack it.  (Does anyone know why this
idea didn't make it into Haskell'98?)

> I seem to remember (but am
> unable to test), that 'deriving(Show)' will do the right
> thing for Show.showType too.

Yes, it does.

Regards,
    Malcolm


Reply via email to