Malcom and Sergey write:
> instance ShowType a => ShowType [a]
> where
> showsType xs = ('[':) . showsType x . (']':) where ~(x:_) = xs
Perhaps
where [x] = [error "not used"] `asTypeOf` xs
gives the idea better.
--KW 8-)
--
: Keith Wansbrough, MSc, BSc(Hons) (Auckland) -------------------:
: PhD Student, Computer Laboratory, University of Cambridge, UK. :
: Native of Antipodean Auckland, New Zealand: 174d47'E, 36d55'S. :
: http://www.cl.cam.ac.uk/users/kw217/ mailto:[EMAIL PROTECTED] :
:----------------------------------------------------------------:
- improving error messages S.D.Mechveliani
- Re: improving error messages Ketil Malde
- 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
