Make Semigroup a superclass of Monoid (re #14191)
Unfortunately, this requires introducing a couple of .hs-boot files to break up import cycles (mostly to provide class & typenames in order to be able to write type signatures). This does not yet re-export `(<>)` from Prelude (while the class-name `Semigroup` is reexported); that will happen in a future commit. Test Plan: local ./validate passed Reviewers: ekmett, austin, bgamari, erikd, RyanGlScott Reviewed By: ekmett, RyanGlScott GHC Trac Issues: #14191 Differential Revision: https://phabricator.haskell.org/D3927
Showing
- compiler/prelude/PrelNames.hs 3 additions, 5 deletionscompiler/prelude/PrelNames.hs
- libraries/base/Data/Either.hs 12 additions, 0 deletionslibraries/base/Data/Either.hs
- libraries/base/Data/Functor/Const.hs 2 additions, 2 deletionslibraries/base/Data/Functor/Const.hs
- libraries/base/Data/Functor/Identity.hs 2 additions, 2 deletionslibraries/base/Data/Functor/Identity.hs
- libraries/base/Data/Functor/Utils.hs 20 additions, 16 deletionslibraries/base/Data/Functor/Utils.hs
- libraries/base/Data/Monoid.hs 13 additions, 152 deletionslibraries/base/Data/Monoid.hs
- libraries/base/Data/Ord.hs 1 addition, 0 deletionslibraries/base/Data/Ord.hs
- libraries/base/Data/Proxy.hs 6 additions, 1 deletionlibraries/base/Data/Proxy.hs
- libraries/base/Data/Semigroup.hs 15 additions, 281 deletionslibraries/base/Data/Semigroup.hs
- libraries/base/Data/Semigroup/Internal.hs 258 additions, 0 deletionslibraries/base/Data/Semigroup/Internal.hs
- libraries/base/Data/Semigroup/Internal.hs-boot 12 additions, 0 deletionslibraries/base/Data/Semigroup/Internal.hs-boot
- libraries/base/Data/Void.hs 6 additions, 0 deletionslibraries/base/Data/Void.hs
- libraries/base/GHC/Base.hs 134 additions, 37 deletionslibraries/base/GHC/Base.hs
- libraries/base/GHC/Base.hs-boot 10 additions, 0 deletionslibraries/base/GHC/Base.hs-boot
- libraries/base/GHC/Event/Internal.hs 15 additions, 3 deletionslibraries/base/GHC/Event/Internal.hs
- libraries/base/GHC/Real.hs-boot 7 additions, 0 deletionslibraries/base/GHC/Real.hs-boot
- libraries/base/GHC/ST.hs 4 additions, 1 deletionlibraries/base/GHC/ST.hs
- libraries/base/Prelude.hs 2 additions, 1 deletionlibraries/base/Prelude.hs
- libraries/base/base.cabal 1 addition, 0 deletionslibraries/base/base.cabal
- libraries/base/changelog.md 6 additions, 0 deletionslibraries/base/changelog.md
Loading
Please register or sign in to comment