Skip to content

Commit 1c8756d

Browse files
committed
Fixed app loaded twice on first start
1 parent d46d75b commit 1c8756d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exe/IHP/IDE/DevServer.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ startAppGHCI = do
265265
libDirectory <- LibDir.findLibDirectory
266266

267267
let loadAppCommands =
268-
[ ":script " <> cs libDirectory <> "/applicationGhciConfig"
269-
, ":set prompt \"\"" -- Disable the prompt as this caused output such as '[38;5;208mIHP>[m Ser[v3e8r; 5s;t2a0r8tmedI' instead of 'Server started'
268+
[ -- The app is loaded by loading .ghci, which then loads applicationGhciConfig, which triggers a ':l Main.hs'
269+
":set prompt \"\"" -- Disable the prompt as this caused output such as '[38;5;208mIHP>[m Ser[v3e8r; 5s;t2a0r8tmedI' instead of 'Server started'
270270
, "import qualified ClassyPrelude"
271271
]
272272

0 commit comments

Comments
 (0)