We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7215d80 commit 1a7856bCopy full SHA for 1a7856b
ghcide/src/Development/IDE/Core/HaskellErrorIndex.hs
@@ -86,14 +86,15 @@ initHaskellErrorIndex recorder = pure Nothing
86
#endif
87
88
heiGetError :: HaskellErrorIndex -> GhcMessage -> Maybe HEIError
89
-heiGetError (HaskellErrorIndex index) msg
90
#if MIN_VERSION_ghc(9,6,1)
+heiGetError (HaskellErrorIndex index) msg
91
| Just code <- diagnosticCode msg
92
= showGhcCode code `M.lookup` index
93
| otherwise
94
= Nothing
95
#else
96
- Nothing
97
+ = Nothing
98
99
100
attachHeiErrorCodeDescription :: HEIError -> Diagnostic -> Diagnostic
0 commit comments