Can we deprecate the debugging functions in Data.Map?

Bardur Arantsson spam at scientician.net
Tue Aug 23 22:10:20 UTC 2016


On 2016-08-23 22:26, David Feuer wrote:
> For reasons I can't fathom, Data.Map exports the functions showTree,
> showTreeWith, and valid, all of which seem to be intended for
> debugging the map implementation. No user should ever need these
> abstraction-smashing functions unless they're monkeying around with
> mergeWithKey. If these functions are deprecated, they'll still be
> available from the "internal" module Data.Map.Base. Data.Map.Base will
> be exposed through Cabal at the request of Edward Kmett, although it
> will remain hidden from Haddock and completely unsupported.

+1, but I *do* wonder what Mr. Kmett's use case is.

(I realize that there's a reasonable case for ".Internal" modules which
are still exposed, but I'm curious as to whether there's anything more
to it in this case.)



More information about the Libraries mailing list