[Haskell-cafe] ANN: Data.Monoid.First and Data.Monoid.Last are here to stay

Simon Jakobi simon.jakobi at googlemail.com
Fri May 29 12:20:09 UTC 2020


I'm happy to report that the planned deprecation of
Data.Monoid.{First,Last} [0] has finally been scrapped [1].

The original motivation for removing these newtypes of Maybe was to
resolve the name conflict with Data.Semigroup.{First,Last} [2].

Unfortunately, while implementing the deprecation, I ended up
discovering a whole host of problems with the suggested migration to
(Maybe Data.Semigroup.First) and (Maybe Data.Semigroup.Last), which I
have attempted to summarize in my email to the libraries mailing list

I would like to thank everyone who contributed to the discussion of
the matter, the CLC, and also everyone who pushed me to finally get
the matter resolved. :)


[0] http://hackage.haskell.org/package/base-
[1] https://gitlab.haskell.org/ghc/ghc/-/commit/f44d7ae08442ae6227db37cacc97fe0def8017c5
[2] https://mail.haskell.org/pipermail/libraries/2018-April/028712.html
[3] https://mail.haskell.org/pipermail/libraries/2020-April/030357.html

More information about the Haskell-Cafe mailing list