About WrappedMonoids deprecation

Georgi Lyubenov godzbanebane at gmail.com
Sat Sep 14 19:17:26 UTC 2019


Hello!

Sorry if this is not the right place to ask!

As of right now (14.09.2019) Data.Semigroup.WrappedMonoid is slated to be
deprecated
<https://hackage.haskell.org/package/base-4.12.0.0/docs/Data-Semigroup.html#t:WrappedMonoid>
.

I believe that this newtype is actually useful in tandem with DerivingVia,
as it allows you to derive the Semigroup instance for something that has a
Monoid instance already, as discussed in this twitter thread
<https://twitter.com/googleson78/status/1172944490597945344>.

Would it be possible to *not* deprecate it in the future, and instead keep
it around for exactly this purpose?

Cheers,
Georgi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20190914/3eba05f0/attachment.html>


More information about the Libraries mailing list