Skip to content

Commit 2ccd27f

Browse files
committed
add log stage
1 parent 9b75811 commit 2ccd27f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ghcide/src/Development/IDE/Core/Shake.hs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,15 @@ instance Pretty Log where
246246
<> indent 4 (pretty $ fmap (first fromNormalizedFilePath) ofInterest)
247247
LogTimeOutShuttingDownWaitForSessionVar seconds ->
248248
"ShutWaitFor session timed out waiting for session var after" <+> pretty seconds <+> "seconds"
249+
LogShakeShutProcess stage -> "Shutting down shake process" <+> pretty stage
249250

251+
instance Pretty ShutStage where
252+
pretty = \case
253+
ShutSessionCanceled -> "Session canceled"
254+
ShutProfiledDone -> "Profiled done"
255+
ShutProgressMonitorStop -> "Progress monitor stop"
256+
ShutProgressStop -> "Progress stop"
257+
ShutSessionGet -> "Session get"
250258
-- | We need to serialize writes to the database, so we send any function that
251259
-- needs to write to the database over the channel, where it will be picked up by
252260
-- a worker thread.

0 commit comments

Comments
 (0)