From aa490b350b35a07495837e96d01137ed50915131 Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Wed, 10 Apr 2019 22:00:18 +1000 Subject: GHCi: add 'local-config' setting Add the ':set local-config { source | ignore }' setting to control whether .ghci file in current directory will be sourced or not. The directive can be set in global config or $HOME/.ghci, which are processed before local .ghci files. The default is "source", preserving current behaviour. Related: https://gitlab.haskell.org/ghc/ghc/issues/6017 Related: https://gitlab.haskell.org/ghc/ghc/issues/14250 --- ghc/GHCi/UI.hs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'ghc/GHCi/UI.hs') diff --git a/ghc/GHCi/UI.hs b/ghc/GHCi/UI.hs index 55d06dcc1e..21ef7969ba 100644 --- a/ghc/GHCi/UI.hs +++ b/ghc/GHCi/UI.hs @@ -351,13 +351,16 @@ defFullHelpText = "\n" ++ " :set