Skip to content

Commit 6c6b4f7

Browse files
committed
Exclude package exports from NFData.rnf
This fixes the th-linking-test because it restores the previous dynamic semantics in which the package exports are only evaluated when code actions are requested.
1 parent 840ca8d commit 6c6b4f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ghcide/src/Development/IDE/Types/HscEnvEq.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ instance Eq HscEnvEq where
107107
a == b = envUnique a == envUnique b
108108

109109
instance NFData HscEnvEq where
110-
rnf (HscEnvEq a b c d e) = rnf (hashUnique a) `seq` b `seq` c `seq` rnf d `seq` rnf e
110+
rnf (HscEnvEq a b c d _) =
111+
-- deliberately skip the package exports map
112+
rnf (hashUnique a) `seq` b `seq` c `seq` rnf d
111113

112114
instance Hashable HscEnvEq where
113115
hashWithSalt s = hashWithSalt s . envUnique

0 commit comments

Comments
 (0)