From a4b34808720e93b434b4fcf18db114bc1f0599aa Mon Sep 17 00:00:00 2001 From: Georgi Lyubenov Date: Thu, 8 Sep 2022 13:49:11 +0300 Subject: Isolate some Applicative hidings to GHC.Prelude By reexporting the entirety of Applicative from GHC.Prelude, we can save ourselves some `hiding` and importing of `Applicative` in consumers of GHC.Prelude. This also has the benefit of isolating this type of change to GHC.Prelude, so that people in the future don't have to think about it. --- compiler/GHC/Prelude.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compiler/GHC/Prelude.hs') diff --git a/compiler/GHC/Prelude.hs b/compiler/GHC/Prelude.hs index 6a810ac200..0f8740f62d 100644 --- a/compiler/GHC/Prelude.hs +++ b/compiler/GHC/Prelude.hs @@ -14,6 +14,7 @@ module GHC.Prelude (module X + ,Applicative (..) ,module Bits ,shiftL, shiftR ) where @@ -47,7 +48,8 @@ NoImplicitPrelude. There are two motivations for this: extensions. -} -import Prelude as X hiding ((<>)) +import Prelude as X hiding ((<>), Applicative(..)) +import Control.Applicative (Applicative(..)) import Data.Foldable as X (foldl') #if MIN_VERSION_base(4,16,0) -- cgit v1.2.1