@@ -74,10 +74,10 @@ experiments =
7474 isJust <$> getHover doc (fromJust identifierP),
7575 ---------------------------------------------------------------------------------------
7676 bench " edit" $ \ docs -> do
77- forM_ docs $ \ DocumentPositions {.. } ->
77+ forM_ docs $ \ DocumentPositions {.. } -> do
7878 changeDoc doc [charEdit stringLiteralP]
79- -- wait for a fresh build start
80- waitForProgressStart
79+ -- wait for a fresh build start
80+ waitForProgressStart
8181 -- wait for the build to be finished
8282 waitForProgressDone
8383 return True ,
@@ -121,8 +121,9 @@ experiments =
121121 ( \ docs -> do
122122 unless (any (isJust . identifierP) docs) $
123123 error " None of the example modules is suitable for this experiment"
124- forM_ docs $ \ DocumentPositions {.. } ->
124+ forM_ docs $ \ DocumentPositions {.. } -> do
125125 forM_ identifierP $ \ p -> changeDoc doc [charEdit p]
126+ waitForProgressStart
126127 waitForProgressDone
127128 )
128129 ( \ docs -> not . null . catMaybes <$> forM docs (\ DocumentPositions {.. } ->
@@ -139,8 +140,9 @@ experiments =
139140 forM_ identifierP $ \ p -> changeDoc doc [charEdit p]
140141 )
141142 ( \ docs -> do
142- forM_ docs $ \ DocumentPositions {.. } ->
143+ forM_ docs $ \ DocumentPositions {.. } -> do
143144 changeDoc doc [charEdit stringLiteralP]
145+ waitForProgressStart
144146 waitForProgressDone
145147 not . null . catMaybes <$> forM docs (\ DocumentPositions {.. } -> do
146148 forM identifierP $ \ p ->
@@ -160,8 +162,9 @@ experiments =
160162 liftIO $ appendFile (fromJust $ uriToFilePath hieYamlUri) " ##\n "
161163 sendNotification SWorkspaceDidChangeWatchedFiles $ DidChangeWatchedFilesParams $
162164 List [ FileEvent hieYamlUri FcChanged ]
163- forM_ docs $ \ DocumentPositions {.. } ->
165+ forM_ docs $ \ DocumentPositions {.. } -> do
164166 changeDoc doc [charEdit stringLiteralP]
167+ waitForProgressStart
165168 waitForProgressDone
166169 not . null . catMaybes <$> forM docs (\ DocumentPositions {.. } -> do
167170 forM identifierP $ \ p ->
0 commit comments