> > 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
- RE: improving error messages Simon Peyton-Jones
- RE: improving error messages Malcolm Wallace
- Re: improving error messages Fergus Henderson
- Re: improving error messages S.J.Thompson
- Re: improving error messages Jan Skibinski
- improving error messages S.D.Mechveliani
- Re: improving error messages Keith Wansbrough
- Re: improving error messages Malcolm Wallace
- RE: improving error messages Simon Peyton-Jones
- RE: improving error messages Sigbjorn Finne
- Re: improving error messages Malcolm Wallace
- Re: improving error messages George Russell
- Re: improving error messages Koen Claessen
- Re: improving error messages Leon Smith
