Skip to content

Commit ba0c87e

Browse files
committed
add comments
1 parent ea468c2 commit ba0c87e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ data ShakeExtras = ShakeExtras
190190
,debouncer :: Debouncer NormalizedUri
191191
,logger :: Logger
192192
,globals :: TVar (HMap.HashMap TypeRep Dynamic)
193+
-- ^ Registry of global state used by rules.
194+
-- Small and immutable after startup, so not worth using an STM.Map.
193195
,state :: Values
194196
,diagnostics :: STMDiagnosticStore
195197
,hiddenDiagnostics :: STMDiagnosticStore
@@ -221,6 +223,7 @@ data ShakeExtras = ShakeExtras
221223
, persistentKeys :: TVar (HMap.HashMap Key GetStalePersistent)
222224
-- ^ Registery for functions that compute/get "stale" results for the rule
223225
-- (possibly from disk)
226+
-- Small and immutable after startup, so not worth using an STM.Map.
224227
, vfs :: VFSHandle
225228
, defaultConfig :: Config
226229
-- ^ Default HLS config, only relevant if the client does not provide any Config

0 commit comments

Comments
 (0)