Future of "Text.Show.Functions" module

Herbert Valerio Riedel hvr at gnu.org
Mon Oct 20 08:57:24 UTC 2014


On 2014-10-19 at 23:24:25 +0200, Edward Kmett wrote:
> Malcolm's reasoning matches mine perfectly here.
>
> The instance should not be standard. 
>
> It should never go into Prelude.
>
> It standardizes on one of many viable choices.
>
> However, it is one of those things that folks, rightly or wrongly,
> define fairly often and removing it would increase conflicts among
> orphans doing the same thing.
>
> I'd strongly advocate holding your nose and leaving it there.

Fair enough. But what about adding a WARNING pragma such as
(modulo wording):


  module Text.Show.Functions {-# WARNING "Here Be Dragons, RTFM!" -# } where


and adding a bit more documentation pointing out the dos and donts of
using that module (like explaining it is not be advisable import that
module in a public library package to be placed on Hackage due to the
global namespace issue of such instances)

Cheers,
  hvr


More information about the Libraries mailing list