Skip to content

Commit 2a7a72b

Browse files
committed
format
1 parent d589c6f commit 2a7a72b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ progressUpdate ProgressReportingOutSide {..} = progressUpdateO
8686
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8787
The progress of tasks can be tracked in two ways:
8888
89-
1. `InProgressState ProgressStateInsideTracking`: This is an internal state that actively tracks the progress.
89+
1. `InProgressState 'ProgressStateInsideTracking`: This is an internal state that actively tracks the progress.
9090
Changes to the progress are made directly to this state.
9191
92-
2. `InProgressState ProgressStateOutsideTracking`: This is an external state that tracks the progress.
92+
2. `InProgressState 'ProgressStateOutsideTracking`: This is an external state that tracks the progress.
9393
The external state is converted into an STM Int for the purpose of reporting progress.
9494
9595
The `inProgress` function is only useful when we are using `ProgressStateInsideTracking`.
@@ -145,16 +145,16 @@ data InProgressState (a :: ProgressStateTrackingType) where
145145
, doneVar :: TVar Int
146146
-- | Number of files done
147147
, currentVar :: STM.Map NormalizedFilePath Int
148-
} -> InProgressState ProgressStateInsideTracking
148+
} -> InProgressState 'ProgressStateInsideTracking
149149
InProgressStateOutSide ::
150150
-- we transform the outside state into STM Int for progress reporting purposes
151151
{ todo :: STM Int
152152
-- | Number of files to do
153153
, done :: STM Int
154154
-- | Number of files done
155-
} -> InProgressState ProgressStateOutsideTracking
155+
} -> InProgressState 'ProgressStateOutsideTracking
156156

157-
newInProgress :: IO (InProgressState ProgressStateInsideTracking)
157+
newInProgress :: IO (InProgressState 'ProgressStateInsideTracking)
158158
newInProgress = InProgressState <$> newTVarIO 0 <*> newTVarIO 0 <*> STM.newIO
159159

160160
recordProgress :: InProgressState a -> NormalizedFilePath -> (Int -> Int) -> IO ()

0 commit comments

Comments
 (0)