[commit: ghc] ghc-7.10: Re-export `<$>` from Prelude (#10113) (dc73705)
git at git.haskell.org
git at git.haskell.org
Sat Mar 7 10:36:59 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.10
Link : http://ghc.haskell.org/trac/ghc/changeset/dc737056fd66f6033cf6b7089a8508b62ab2eeb1/ghc
>---------------------------------------------------------------
commit dc737056fd66f6033cf6b7089a8508b62ab2eeb1
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Sat Mar 7 11:10:34 2015 +0100
Re-export `<$>` from Prelude (#10113)
Whether to re-export the `<$>` non-method operator from `Prelude` wasn't
explicitly covered in the original AMP proposal[1], but it turns out that
not doing so forces most code that makes use of applicatives to import
`Data.Functor` or `Control.Applicative` just to get that operator into
scope. To this end, it was proposed to add `<$>` to Prelude as well[2].
The down-side is that this increases the amount of redundant-import
warnings triggered, as well as the relatively minor issue of stealing
the `<$>` operator from the default namespace for good (although at this
point `<$>` is supposed to be ubiquitous anyway due to `Applicative`
being implicitly required into the next Haskell Report)
[1]: https://wiki.haskell.org/Functor-Applicative-Monad_Proposal
[2]: http://thread.gmane.org/gmane.comp.lang.haskell.libraries/24161
(cherry picked from commit eb3661f2b9f8472f3714774126ebe1183484dd85)
>---------------------------------------------------------------
dc737056fd66f6033cf6b7089a8508b62ab2eeb1
compiler/hsSyn/HsBinds.hs | 2 --
compiler/parser/RdrHsSyn.hs | 2 ++
compiler/typecheck/TcEvidence.hs | 2 +-
compiler/typecheck/TcGenDeriv.hs | 2 ++
compiler/types/Coercion.hs | 2 +-
compiler/utils/MonadUtils.hs | 1 +
compiler/utils/Pair.hs | 2 +-
compiler/vectorise/Vectorise/Convert.hs | 2 +-
compiler/vectorise/Vectorise/Exp.hs | 2 ++
compiler/vectorise/Vectorise/Type/Type.hs | 2 +-
compiler/vectorise/Vectorise/Utils/Hoisting.hs | 2 +-
compiler/vectorise/Vectorise/Var.hs | 2 +-
libraries/base/Prelude.hs | 3 ++-
testsuite/tests/parser/should_compile/T7476/T7476.hs | 2 +-
testsuite/tests/parser/should_compile/T7476/T7476.stdout | 2 +-
testsuite/tests/rename/should_fail/T2993.hs | 2 +-
testsuite/tests/rename/should_fail/T2993.stderr | 2 +-
testsuite/tests/th/T10019.stdout | 2 +-
18 files changed, 21 insertions(+), 15 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 dc737056fd66f6033cf6b7089a8508b62ab2eeb1
More information about the ghc-commits
mailing list