summaryrefslogtreecommitdiff
path: root/compiler/GHC/Prelude.hs
diff options
context:
space:
mode:
authorGeorgi Lyubenov <georgi.lyubenov@tweag.io>2022-09-08 13:49:11 +0300
committerGeorgi Lyubenov <georgi.lyubenov@tweag.io>2022-09-08 17:14:36 +0300
commita4b34808720e93b434b4fcf18db114bc1f0599aa (patch)
treebefa7dd6a8abd33c7a5794b64558be553c58c3bd /compiler/GHC/Prelude.hs
parentf54ff8183a38a92c0ae4e063bc8bd85a33fdc9ff (diff)
downloadhaskell-a4b34808720e93b434b4fcf18db114bc1f0599aa.tar.gz
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.
Diffstat (limited to 'compiler/GHC/Prelude.hs')
-rw-r--r--compiler/GHC/Prelude.hs4
1 files changed, 3 insertions, 1 deletions
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)