Respect prompt in GhciSettings
authorZejun Wu <watashi@fb.com>
Wed, 19 Dec 2018 02:29:44 +0000 (18:29 -0800)
committerBen Gamari <ben@smart-cactus.org>
Sun, 6 Jan 2019 12:27:09 +0000 (07:27 -0500)
Summary:
This was broken when PromptFunction was introduced that the settings are
ignored and default values are always used.

Test Plan: ./validate

ghc/GHCi/UI.hs

index 105324f..2cc055a 100644 (file)
@@ -468,8 +468,8 @@ interactiveUI config srcs maybe_exprs = do
         GHCiState{ progname           = default_progname,
                    args               = default_args,
                    evalWrapper        = eval_wrapper,
-                   prompt             = default_prompt,
-                   prompt_cont        = default_prompt_cont,
+                   prompt             = defPrompt config,
+                   prompt_cont        = defPromptCont config,
                    stop               = default_stop,
                    editor             = default_editor,
                    options            = [],