Remove some redundant definitions/constraints
authorHerbert Valerio Riedel <hvr@gnu.org>
Thu, 31 Dec 2015 15:42:38 +0000 (16:42 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Thu, 31 Dec 2015 21:38:52 +0000 (22:38 +0100)
commit3c8cb7f43c89e9a2b754adc5e639985f0b95b1f1
tree7c027a215ed2b15fd66ce99ca533cc9348df745e
parent2f923ce2ab8bad6d01645c735c81bbf1b9ff1e05
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.
46 files changed:
compiler/basicTypes/UniqSupply.hs
compiler/cmm/CmmLint.hs
compiler/cmm/PprC.hs
compiler/codeGen/StgCmmExtCode.hs
compiler/codeGen/StgCmmMonad.hs
compiler/coreSyn/CoreLint.hs
compiler/deSugar/Coverage.hs
compiler/ghci/ByteCodeAsm.hs
compiler/ghci/ByteCodeGen.hs
compiler/hsSyn/Convert.hs
compiler/llvmGen/LlvmCodeGen/Base.hs
compiler/main/CmdLineParser.hs
compiler/main/GhcMonad.hs
compiler/main/HscTypes.hs
compiler/main/PipelineMonad.hs
compiler/main/TidyPgm.hs
compiler/nativeGen/AsmCodeGen.hs
compiler/nativeGen/NCGMonad.hs
compiler/nativeGen/RegAlloc/Linear/State.hs
compiler/parser/Lexer.x
compiler/prelude/PrelRules.hs
compiler/profiling/SCCfinal.hs
compiler/rename/RnPat.hs
compiler/simplCore/CoreMonad.hs
compiler/simplCore/SimplMonad.hs
compiler/specialise/Specialise.hs
compiler/stgSyn/CoreToStg.hs
compiler/stgSyn/StgLint.hs
compiler/typecheck/TcFlatten.hs
compiler/typecheck/TcRnTypes.hs
compiler/typecheck/TcSMonad.hs
compiler/typecheck/TcTyDecls.hs
compiler/typecheck/TcType.hs
compiler/types/FamInstEnv.hs
compiler/types/Type.hs
compiler/types/Unify.hs
compiler/utils/Exception.hs
compiler/utils/IOEnv.hs
compiler/utils/Maybes.hs
compiler/utils/State.hs
compiler/utils/Stream.hs
compiler/vectorise/Vectorise/Monad/Base.hs
libraries/ghci/GHCi/TH.hs
libraries/template-haskell/Language/Haskell/TH/PprLib.hs
libraries/template-haskell/Language/Haskell/TH/Syntax.hs
utils/ghc-pkg/Main.hs