[Haskell] Re: Parameterized Show
Tomasz Zielonka
tomasz.zielonka at gmail.com
Mon Nov 15 07:59:50 EST 2004
On Mon, Nov 15, 2004 at 12:31:33PM +0000, Keean Schupke wrote:
> Easy:
> Here, with labelled instances you would write:
>
> show ShowHex 27
>
> instead you write:
>
> show (ShowHex 27)
What about Ints buried deep in more complicated data structures:
show ShowHex [[1, 2, 3], [4]]
vs.
show (map (map ShowHex) [[1, 2, 3], [4]])
BTW, This thread reminds me a similar problem that was discussed on
haskell list. Unfortunately, there were some problems with this approach
(accumulating typeclass contexts).
http://www.haskell.org/pipermail/haskell/2004-August/thread.html#14427
Best regards,
Tom
--
.signature: Too many levels of symbolic links
More information about the Haskell
mailing list