Skip to content

Commit d589c6f

Browse files
committed
format
1 parent 7bcb2da commit d589c6f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,22 @@ data ProgressEvent
5353
data ProgressStateTrackingType = ProgressStateInsideTracking | ProgressStateOutsideTracking
5454

5555
data ProgressReporting (a :: ProgressStateTrackingType) m where
56+
-- ^ see Note [ProgressReporting API and InProgressState]
5657
ProgressReportingInSide ::
5758
{ progressUpdateI :: ProgressEvent -> m (),
5859
inProgress :: forall a. NormalizedFilePath -> m a -> m a,
59-
-- ^ see Note [ProgressReporting API and InProgressState]
6060
progressStopI :: IO ()
6161
-- ^ we are using IO here because creating and stopping the `ProgressReporting`
6262
-- is different from how we use it.
6363
} -> ProgressReporting 'ProgressStateInsideTracking m
6464
ProgressReportingOutSide ::
6565
-- since we are tracking progress externally, we don't need the `inProgress` function
6666
{ progressUpdateO :: ProgressEvent -> m (),
67-
-- ^ see Note [ProgressReporting API and InProgressState]
6867
progressStopO :: IO ()
6968
-- ^ we are using IO here because creating and stopping the `ProgressReporting`
7069
-- is different from how we use it.
7170
} -> ProgressReporting 'ProgressStateOutsideTracking m
7271

73-
-- Note [ProgressReporting API and InProgressState]
74-
7572

7673
-- |
7774
-- DuplicatedRecordFields won't work here because of the GADT gives us different result types

0 commit comments

Comments
 (0)