From 1c8756d85900bef453589142f53b806c6eb5dfc7 Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Fri, 2 Jun 2023 17:08:40 +0200 Subject: [PATCH] Fixed app loaded twice on first start --- exe/IHP/IDE/DevServer.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exe/IHP/IDE/DevServer.hs b/exe/IHP/IDE/DevServer.hs index a4fca2e10..76bade7de 100644 --- a/exe/IHP/IDE/DevServer.hs +++ b/exe/IHP/IDE/DevServer.hs @@ -265,8 +265,8 @@ startAppGHCI = do libDirectory <- LibDir.findLibDirectory let loadAppCommands = - [ ":script " <> cs libDirectory <> "/applicationGhciConfig" - , ":set prompt \"\"" -- Disable the prompt as this caused output such as '[38;5;208mIHP>[m Ser[v3e8r; 5s;t2a0r8tmedI' instead of 'Server started' + [ -- The app is loaded by loading .ghci, which then loads applicationGhciConfig, which triggers a ':l Main.hs' + ":set prompt \"\"" -- Disable the prompt as this caused output such as '[38;5;208mIHP>[m Ser[v3e8r; 5s;t2a0r8tmedI' instead of 'Server started' , "import qualified ClassyPrelude" ]