EPA: Replace Monoid with NoAnn
We currently use the Monoid class as a constraint on Exact Print Annotation functions, so we can use mempty. But this leads to requiring Semigroup instances too, which do not always make sense. Instead, introduce a class NoAnn, with a function noAnn analogous to mempty. Closes #20372 Updates haddock submodule
Showing
- compiler/GHC/Parser.y 3 additions, 3 deletionscompiler/GHC/Parser.y
- compiler/GHC/Parser/Annotation.hs 48 additions, 57 deletionscompiler/GHC/Parser/Annotation.hs
- utils/check-exact/Main.hs 1 addition, 1 deletionutils/check-exact/Main.hs
- utils/check-exact/Orphans.hs 43 additions, 63 deletionsutils/check-exact/Orphans.hs
- utils/check-exact/Transform.hs 13 additions, 13 deletionsutils/check-exact/Transform.hs
- utils/check-exact/Utils.hs 6 additions, 7 deletionsutils/check-exact/Utils.hs
- utils/haddock 1 addition, 1 deletionutils/haddock
Loading
Please register or sign in to comment