The GHC docs claim Ptr a is an instance of Eq, Ord and Show, but it doesn't actually seem to have a Show instance. At least the docs should reflect the fact that there is not instance; preferably, could someone actually make an instance? It would be nice (primarily for debugging purposes) to be able to see where the allocations from malloc, newArray, etc took place. - Hal -- Hal Daume III "Computer science is no more about computers | hdaume@isi.edu than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume
Hal Daume III wrote:
The GHC docs claim Ptr a is an instance of Eq, Ord and Show, but it doesn't actually seem to have a Show instance. [...]
The CVS version of GHC already has this instance, but none for FunPtr. I've just added the latter, so docs and implementation are in synch again... Cheers, S.
participants (2)
-
Hal Daume III -
Sven Panne