base: Remove `Monad(fail)` method and reexport `MonadFail(fail)` instead
authorHerbert Valerio Riedel <hvr@gnu.org>
Sat, 10 Nov 2018 00:12:52 +0000 (01:12 +0100)
committerBen Gamari <ben@smart-cactus.org>
Fri, 22 Mar 2019 14:34:51 +0000 (10:34 -0400)
commitab51bee40c82cd552bcf13e24b67d43f3b8d25f3
treea75a4102576dad50af44e342fb9152e7270792eb
parentcd07086ada34888c08585f4dc98a961618748ed0
base: Remove `Monad(fail)` method and reexport `MonadFail(fail)` instead

As per https://prime.haskell.org/wiki/Libraries/Proposals/MonadFail

Coauthored-by: Ben Gamari <ben@well-typed.com>
153 files changed:
compiler/ghc.cabal.in
compiler/main/DynFlags.hs
compiler/prelude/PrelNames.hs
compiler/rename/RnExpr.hs
compiler/rename/RnSource.hs
compiler/simplCore/SimplCore.hs
compiler/typecheck/TcMatches.hs
ghc/ghc-bin.cabal.in
libraries/base/Control/Monad.hs
libraries/base/Control/Monad/ST/Lazy/Imp.hs
libraries/base/GHC/Base.hs
libraries/base/GHC/Conc/Sync.hs
libraries/base/GHC/TopHandler.hs
libraries/base/Prelude.hs
libraries/base/System/IO.hs
libraries/base/Text/ParserCombinators/ReadP.hs
libraries/base/Text/ParserCombinators/ReadPrec.hs
libraries/base/base.cabal
libraries/hpc
testsuite/tests/ado/ado004.stderr
testsuite/tests/backpack/cabal/T16219/backpack-issue.cabal
testsuite/tests/backpack/should_compile/bkp16.stderr
testsuite/tests/backpack/should_fail/bkpfail16.stderr
testsuite/tests/backpack/should_fail/bkpfail17.stderr
testsuite/tests/backpack/should_fail/bkpfail19.stderr
testsuite/tests/deSugar/should_run/dsrun010.hs
testsuite/tests/dependent/should_compile/T14729.stderr
testsuite/tests/dependent/should_compile/T15743.stderr
testsuite/tests/dependent/should_compile/T15743e.stderr
testsuite/tests/determinism/determ017/A.hs
testsuite/tests/determinism/determ021/determ021.stdout
testsuite/tests/driver/json2.stderr
testsuite/tests/ghci/scripts/T4175.stdout
testsuite/tests/ghci/scripts/ghci008.stdout
testsuite/tests/ghci/scripts/ghci011.stdout
testsuite/tests/ghci/scripts/ghci025.stdout
testsuite/tests/indexed-types/should_compile/T15711.stderr
testsuite/tests/indexed-types/should_compile/T15852.stderr
testsuite/tests/indexed-types/should_compile/T3017.stderr
testsuite/tests/monadfail/MonadFailErrors.hs
testsuite/tests/monadfail/MonadFailErrors.stderr
testsuite/tests/monadfail/MonadFailWarnings.hs [deleted file]
testsuite/tests/monadfail/MonadFailWarnings.stderr [deleted file]
testsuite/tests/monadfail/MonadFailWarningsDisabled.hs [deleted file]
testsuite/tests/monadfail/MonadFailWarningsWithRebindableSyntax.hs [deleted file]
testsuite/tests/monadfail/MonadFailWarningsWithRebindableSyntax.stderr [deleted file]
testsuite/tests/monadfail/all.T
testsuite/tests/partial-sigs/should_compile/ADT.stderr
testsuite/tests/partial-sigs/should_compile/AddAndOr1.stderr
testsuite/tests/partial-sigs/should_compile/AddAndOr2.stderr
testsuite/tests/partial-sigs/should_compile/AddAndOr3.stderr
testsuite/tests/partial-sigs/should_compile/AddAndOr4.stderr
testsuite/tests/partial-sigs/should_compile/AddAndOr5.stderr
testsuite/tests/partial-sigs/should_compile/AddAndOr6.stderr
testsuite/tests/partial-sigs/should_compile/BoolToBool.stderr
testsuite/tests/partial-sigs/should_compile/DataFamilyInstanceLHS.stderr
testsuite/tests/partial-sigs/should_compile/Defaulting1MROn.stderr
testsuite/tests/partial-sigs/should_compile/Defaulting2MROff.stderr
testsuite/tests/partial-sigs/should_compile/Defaulting2MROn.stderr
testsuite/tests/partial-sigs/should_compile/Either.stderr
testsuite/tests/partial-sigs/should_compile/EqualityConstraint.stderr
testsuite/tests/partial-sigs/should_compile/Every.stderr
testsuite/tests/partial-sigs/should_compile/EveryNamed.stderr
testsuite/tests/partial-sigs/should_compile/ExpressionSig.stderr
testsuite/tests/partial-sigs/should_compile/ExpressionSigNamed.stderr
testsuite/tests/partial-sigs/should_compile/ExtraConstraints1.stderr
testsuite/tests/partial-sigs/should_compile/ExtraConstraints2.stderr
testsuite/tests/partial-sigs/should_compile/ExtraConstraints3.stderr
testsuite/tests/partial-sigs/should_compile/ExtraNumAMROff.stderr
testsuite/tests/partial-sigs/should_compile/ExtraNumAMROn.stderr
testsuite/tests/partial-sigs/should_compile/Forall1.stderr
testsuite/tests/partial-sigs/should_compile/GenNamed.stderr
testsuite/tests/partial-sigs/should_compile/HigherRank1.stderr
testsuite/tests/partial-sigs/should_compile/HigherRank2.stderr
testsuite/tests/partial-sigs/should_compile/LocalDefinitionBug.stderr
testsuite/tests/partial-sigs/should_compile/Meltdown.stderr
testsuite/tests/partial-sigs/should_compile/MonoLocalBinds.stderr
testsuite/tests/partial-sigs/should_compile/NamedTyVar.stderr
testsuite/tests/partial-sigs/should_compile/NamedWildcardInDataFamilyInstanceLHS.stderr
testsuite/tests/partial-sigs/should_compile/NamedWildcardInTypeFamilyInstanceLHS.stderr
testsuite/tests/partial-sigs/should_compile/ParensAroundContext.stderr
testsuite/tests/partial-sigs/should_compile/PatBind.stderr
testsuite/tests/partial-sigs/should_compile/PatBind2.stderr
testsuite/tests/partial-sigs/should_compile/PatternSig.stderr
testsuite/tests/partial-sigs/should_compile/Recursive.stderr
testsuite/tests/partial-sigs/should_compile/ScopedNamedWildcards.stderr
testsuite/tests/partial-sigs/should_compile/ScopedNamedWildcardsGood.stderr
testsuite/tests/partial-sigs/should_compile/ShowNamed.stderr
testsuite/tests/partial-sigs/should_compile/SimpleGen.stderr
testsuite/tests/partial-sigs/should_compile/SkipMany.stderr
testsuite/tests/partial-sigs/should_compile/SomethingShowable.stderr
testsuite/tests/partial-sigs/should_compile/TypeFamilyInstanceLHS.stderr
testsuite/tests/partial-sigs/should_compile/Uncurry.stderr
testsuite/tests/partial-sigs/should_compile/UncurryNamed.stderr
testsuite/tests/partial-sigs/should_compile/WarningWildcardInstantiations.stderr
testsuite/tests/perf/compiler/T3064.hs
testsuite/tests/polykinds/T15592.stderr
testsuite/tests/polykinds/T15592b.stderr
testsuite/tests/profiling/should_run/T3001-2.hs
testsuite/tests/programs/galois_raytrace/Eval.hs
testsuite/tests/quasiquotation/qq005/Expr.hs
testsuite/tests/quasiquotation/qq006/Expr.hs
testsuite/tests/rebindable/DoRestrictedM.hs
testsuite/tests/rebindable/RebindableFailA.hs [new file with mode: 0644]
testsuite/tests/rebindable/RebindableFailA.stderr [new file with mode: 0644]
testsuite/tests/rebindable/RebindableFailB.hs [new file with mode: 0644]
testsuite/tests/rebindable/RebindableFailB.stdout [new file with mode: 0644]
testsuite/tests/rebindable/T5908.hs
testsuite/tests/rebindable/all.T
testsuite/tests/rebindable/rebindable1.hs
testsuite/tests/rebindable/rebindable11.hs [deleted file]
testsuite/tests/rebindable/rebindable11.stderr [deleted file]
testsuite/tests/rebindable/rebindable12.hs [deleted file]
testsuite/tests/rebindable/rebindable12.stderr [deleted file]
testsuite/tests/rebindable/rebindable2.hs
testsuite/tests/rename/should_fail/rnfail040.stderr
testsuite/tests/roles/should_compile/Roles1.stderr
testsuite/tests/roles/should_compile/Roles14.stderr
testsuite/tests/roles/should_compile/Roles2.stderr
testsuite/tests/roles/should_compile/Roles3.stderr
testsuite/tests/roles/should_compile/Roles4.stderr
testsuite/tests/roles/should_compile/T8958.stderr
testsuite/tests/safeHaskell/check/Check01.stderr
testsuite/tests/safeHaskell/check/Check06.stderr
testsuite/tests/safeHaskell/check/Check08.stderr
testsuite/tests/safeHaskell/check/Check09.stderr
testsuite/tests/safeHaskell/check/pkg01/ImpSafe01.stderr
testsuite/tests/safeHaskell/check/pkg01/ImpSafe04.stderr
testsuite/tests/safeHaskell/flags/SafeFlags17.stderr
testsuite/tests/simplCore/prog002/Simpl009Help.hs
testsuite/tests/simplCore/should_compile/T8331.hs
testsuite/tests/th/T15321.stderr
testsuite/tests/typecheck/should_compile/T12763.stderr
testsuite/tests/typecheck/should_compile/T15645.stderr [deleted file]
testsuite/tests/typecheck/should_compile/T4524.hs
testsuite/tests/typecheck/should_compile/T4969.hs
testsuite/tests/typecheck/should_compile/Tc239_Help.hs
testsuite/tests/typecheck/should_compile/abstract_refinement_hole_fits.stderr
testsuite/tests/typecheck/should_compile/constraint_hole_fits.stderr
testsuite/tests/typecheck/should_compile/refinement_hole_fits.stderr
testsuite/tests/typecheck/should_compile/subsumption_sort_hole_fits.stderr
testsuite/tests/typecheck/should_compile/tc231.stderr
testsuite/tests/typecheck/should_compile/valid_hole_fits.stderr
testsuite/tests/typecheck/should_fail/TcStaticPointersFail02.stderr
testsuite/tests/typecheck/should_fail/tcfail182.stderr
testsuite/tests/typecheck/should_run/T1735_Help/State.hs
testsuite/tests/warnings/should_compile/T11128.hs [deleted file]
testsuite/tests/warnings/should_compile/T11128.stderr [deleted file]
testsuite/tests/warnings/should_compile/T11128b.hs [deleted file]
testsuite/tests/warnings/should_compile/T11128b.stderr [deleted file]
testsuite/tests/warnings/should_compile/all.T
testsuite/tests/wcompat-warnings/Template.hs
testsuite/tests/wcompat-warnings/WCompatWarningsOn.stderr