Skip to content

Commit 4a1a52e

Browse files
committed
rephrase comment
1 parent 95a42f0 commit 4a1a52e

File tree

1 file changed

+4
-3
lines changed
  • hls-graph/src/Development/IDE/Graph/Internal

1 file changed

+4
-3
lines changed

hls-graph/src/Development/IDE/Graph/Internal/Types.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,10 @@ data Result = Result {
145145
resultData :: !BS.ByteString
146146
}
147147

148-
-- some invariant to maintain:
149-
-- the ResultDeps need to be stored in reverse order,
150-
-- so that we can append to it efficiently
148+
-- Notice, invariant to maintain:
149+
-- the ![KeySet] in ResultDeps need to be stored in reverse order,
150+
-- so that we can append to it efficiently, and we need the ordering
151+
-- so we can do a linear dependency refreshing in refreshDeps.
151152
data ResultDeps = UnknownDeps | AlwaysRerunDeps !KeySet | ResultDeps ![KeySet]
152153
deriving (Eq, Show)
153154

0 commit comments

Comments
 (0)