[Haskell-cafe] can the default instances in GHC be recompiled with overlap?

Jason Dusek jason.dusek at gmail.com
Mon Aug 25 18:44:53 EDT 2008


Brandon S. Allbery KF8NH <allbery at ece.cmu.edu> wrote:
> Jason Dusek wrote:
> >
> > It is inconvenient for certain things. If I want to declare a
> > special `instance Show [MyType] where...` I am out of luck.
>
> In this particular case, can't you just define showList?

  Will GHCi use that automatically? Probably not... Nor can I
  write nice codez with print, printf, &c. I have to use my
  silly function now. I want to be in the Show typeclass for
  clarity as well as convenience.

--
_jsn


More information about the Haskell-Cafe mailing list