[commit: ghc] master: Remove some redundant definitions/constraints (3c8cb7f)

git at git.haskell.org git at git.haskell.org
Thu Dec 31 21:42:04 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/3c8cb7f43c89e9a2b754adc5e639985f0b95b1f1/ghc

>---------------------------------------------------------------

commit 3c8cb7f43c89e9a2b754adc5e639985f0b95b1f1
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Thu Dec 31 16:42:38 2015 +0100

    Remove some redundant definitions/constraints
    
    Starting with GHC 7.10 and base-4.8, `Monad` implies `Applicative`,
    which allows to simplify some definitions to exploit the superclass
    relationship. This a first refactoring to that end.


>---------------------------------------------------------------

3c8cb7f43c89e9a2b754adc5e639985f0b95b1f1
 compiler/basicTypes/UniqSupply.hs                        | 1 -
 compiler/cmm/CmmLint.hs                                  | 1 -
 compiler/cmm/PprC.hs                                     | 1 -
 compiler/codeGen/StgCmmExtCode.hs                        | 1 -
 compiler/codeGen/StgCmmMonad.hs                          | 4 +---
 compiler/coreSyn/CoreLint.hs                             | 1 -
 compiler/deSugar/Coverage.hs                             | 1 -
 compiler/ghci/ByteCodeAsm.hs                             | 1 -
 compiler/ghci/ByteCodeGen.hs                             | 1 -
 compiler/hsSyn/Convert.hs                                | 1 -
 compiler/llvmGen/LlvmCodeGen/Base.hs                     | 1 -
 compiler/main/CmdLineParser.hs                           | 2 --
 compiler/main/GhcMonad.hs                                | 6 ++----
 compiler/main/HscTypes.hs                                | 1 -
 compiler/main/PipelineMonad.hs                           | 1 -
 compiler/main/TidyPgm.hs                                 | 1 -
 compiler/nativeGen/AsmCodeGen.hs                         | 1 -
 compiler/nativeGen/NCGMonad.hs                           | 1 -
 compiler/nativeGen/RegAlloc/Linear/State.hs              | 1 -
 compiler/parser/Lexer.x                                  | 1 -
 compiler/prelude/PrelRules.hs                            | 1 -
 compiler/profiling/SCCfinal.hs                           | 1 -
 compiler/rename/RnPat.hs                                 | 1 -
 compiler/simplCore/CoreMonad.hs                          | 7 +++----
 compiler/simplCore/SimplMonad.hs                         | 1 -
 compiler/specialise/Specialise.hs                        | 1 -
 compiler/stgSyn/CoreToStg.hs                             | 1 -
 compiler/stgSyn/StgLint.hs                               | 1 -
 compiler/typecheck/TcFlatten.hs                          | 1 -
 compiler/typecheck/TcRnTypes.hs                          | 1 -
 compiler/typecheck/TcSMonad.hs                           | 1 -
 compiler/typecheck/TcTyDecls.hs                          | 1 -
 compiler/typecheck/TcType.hs                             | 1 -
 compiler/types/FamInstEnv.hs                             | 1 -
 compiler/types/Type.hs                                   | 4 ++--
 compiler/types/Unify.hs                                  | 2 --
 compiler/utils/Exception.hs                              | 3 +--
 compiler/utils/IOEnv.hs                                  | 1 -
 compiler/utils/Maybes.hs                                 | 2 --
 compiler/utils/State.hs                                  | 1 -
 compiler/utils/Stream.hs                                 | 1 -
 compiler/vectorise/Vectorise/Monad/Base.hs               | 1 -
 libraries/ghci/GHCi/TH.hs                                | 1 -
 libraries/template-haskell/Language/Haskell/TH/PprLib.hs | 1 -
 libraries/template-haskell/Language/Haskell/TH/Syntax.hs | 3 +--
 utils/ghc-pkg/Main.hs                                    | 1 -
 46 files changed, 10 insertions(+), 60 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 3c8cb7f43c89e9a2b754adc5e639985f0b95b1f1


More information about the ghc-commits mailing list