Skip to content

Commit 6fff616

Browse files
author
Mahdi Dibaiee
committed
(111) save on compilation
1 parent 9cb4457 commit 6fff616

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/common/HaskellDo/State.hs

+6-2
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,13 @@ _update (CodeMirrorAction action) appState = do
8080
codeMirrorState = newCodeMirrorState
8181
}
8282

83-
8483
if compileShortcutPressed
85-
then update (ToolbarAction Toolbar.Compile) newState
84+
then do
85+
_ <- atRemote $ Compilation.update
86+
(Compilation.WriteWorkingFile newContent)
87+
(compilationState appState)
88+
89+
update (ToolbarAction Toolbar.Compile) newState
8690
else return newState
8791

8892
_update (ToolbarAction Toolbar.Compile) appState = do

0 commit comments

Comments
 (0)