summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-10-15 17:36:14 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-09-19 15:49:57 -0400
commitd05d13ce6b5be54f3aa1c23f4377920a4965fc50 (patch)
treec81e18d9211157dfc1e3f66bd3a8aad1651c61d1
parent9c1b8ad931e7bfabe521bc17e74ac9869b21a748 (diff)
downloadhaskell-d05d13ce6b5be54f3aa1c23f4377920a4965fc50.tar.gz
Cinch -fno-warn-name-shadowing down to specific GHCi module
-rw-r--r--ghc/GHCi/UI.hs3
-rw-r--r--ghc/GHCi/UI/Info.hs2
-rw-r--r--ghc/GHCi/UI/Monad.hs1
-rw-r--r--ghc/ghc-bin.cabal.in1
4 files changed, 6 insertions, 1 deletions
diff --git a/ghc/GHCi/UI.hs b/ghc/GHCi/UI.hs
index 57d5c528b8..da3b4d5e2f 100644
--- a/ghc/GHCi/UI.hs
+++ b/ghc/GHCi/UI.hs
@@ -11,6 +11,9 @@
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE TypeFamilies #-}
+{-# OPTIONS -fno-warn-name-shadowing #-}
+-- This module does a lot of it
+
-----------------------------------------------------------------------------
--
-- GHC Interactive User Interface
diff --git a/ghc/GHCi/UI/Info.hs b/ghc/GHCi/UI/Info.hs
index 7466a28ce8..64db8ea219 100644
--- a/ghc/GHCi/UI/Info.hs
+++ b/ghc/GHCi/UI/Info.hs
@@ -4,6 +4,8 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
+{-# OPTIONS -fno-warn-name-shadowing #-}
+
-- | Get information on modules, expressions, and identifiers
module GHCi.UI.Info
( ModInfo(..)
diff --git a/ghc/GHCi/UI/Monad.hs b/ghc/GHCi/UI/Monad.hs
index 8c5baeee90..aec9149c4c 100644
--- a/ghc/GHCi/UI/Monad.hs
+++ b/ghc/GHCi/UI/Monad.hs
@@ -1,5 +1,6 @@
{-# LANGUAGE CPP, FlexibleInstances, DeriveFunctor, DerivingVia #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
+{-# OPTIONS -fno-warn-name-shadowing #-}
-----------------------------------------------------------------------------
--
diff --git a/ghc/ghc-bin.cabal.in b/ghc/ghc-bin.cabal.in
index 1518a8debc..7897e7c600 100644
--- a/ghc/ghc-bin.cabal.in
+++ b/ghc/ghc-bin.cabal.in
@@ -65,7 +65,6 @@ Executable ghc
exceptions == 0.10.*,
time >= 1.8 && < 1.10
CPP-Options: -DHAVE_INTERNAL_INTERPRETER
- GHC-Options: -fno-warn-name-shadowing
Other-Modules:
GHCi.Leak
GHCi.UI