Commits on Source (4)
-
Directives in .ghci files in the current directory ("local .ghci") can be overridden by global files. Change the order in which the configs are loaded: global and $HOME/.ghci first, then local. Also introduce a new field to GHCiState to control whether local .ghci gets sourced or ignored. This commit does not add a way to set this value (a subsequent commit will add this), but the .ghci sourcing routine respects its value. Fixes: ghc/ghc#14689 Related: ghc/ghc#6017 Related: ghc/ghc#14250 -
Update users guide to match the new startup script order. Also clarify that -ignore-dot-ghci does not apply to scripts specified via the -ghci-script option. Part of: ghc/ghc#14689
-
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: ghc/ghc#6017 Related: ghc/ghc#14250 -
Document the ':set local-config' command and add a warning about sourcing untrusted local .ghci scripts. Related: ghc/ghc#6017 Related: ghc/ghc#14250