[Haskell-cafe] Confused by instances

Luke Palmer lrpalmer at gmail.com
Mon Apr 28 17:52:00 EDT 2008


On Mon, Apr 28, 2008 at 3:47 PM, Fraser Wilson <blancolioni at gmail.com> wrote:
> On Mon, Apr 28, 2008 at 11:33 PM, Luke Palmer <lrpalmer at gmail.com> wrote:
> >
> > To answer your other question, no, there is no list show hack.
>
> Perhaps hack was a strong word.  I'm not referring to type synonyms, but to
> the fact that Prelude's show class happens to have a special show function
> for lists, which happens to be handy when writing an instance for Show Char.

Oh, showList, that hack!  Right, I had forgotten about that :-)

Luke


More information about the Haskell-Cafe mailing list