@@ -86,10 +86,10 @@ progressUpdate ProgressReportingOutSide {..} = progressUpdateO
86
86
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87
87
The progress of tasks can be tracked in two ways:
88
88
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.
90
90
Changes to the progress are made directly to this state.
91
91
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.
93
93
The external state is converted into an STM Int for the purpose of reporting progress.
94
94
95
95
The `inProgress` function is only useful when we are using `ProgressStateInsideTracking`.
@@ -145,16 +145,16 @@ data InProgressState (a :: ProgressStateTrackingType) where
145
145
, doneVar :: TVar Int
146
146
-- | Number of files done
147
147
, currentVar :: STM. Map NormalizedFilePath Int
148
- } -> InProgressState ProgressStateInsideTracking
148
+ } -> InProgressState ' ProgressStateInsideTracking
149
149
InProgressStateOutSide ::
150
150
-- we transform the outside state into STM Int for progress reporting purposes
151
151
{ todo :: STM Int
152
152
-- | Number of files to do
153
153
, done :: STM Int
154
154
-- | Number of files done
155
- } -> InProgressState ProgressStateOutsideTracking
155
+ } -> InProgressState ' ProgressStateOutsideTracking
156
156
157
- newInProgress :: IO (InProgressState ProgressStateInsideTracking )
157
+ newInProgress :: IO (InProgressState ' ProgressStateInsideTracking)
158
158
newInProgress = InProgressState <$> newTVarIO 0 <*> newTVarIO 0 <*> STM. newIO
159
159
160
160
recordProgress :: InProgressState a -> NormalizedFilePath -> (Int -> Int ) -> IO ()
0 commit comments