Skip to content

Commit 1a7856b

Browse files
dylan-thinnesJaro Reinders
authored andcommitted
Fix more CPP
1 parent 7215d80 commit 1a7856b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,15 @@ initHaskellErrorIndex recorder = pure Nothing
8686
#endif
8787

8888
heiGetError :: HaskellErrorIndex -> GhcMessage -> Maybe HEIError
89-
heiGetError (HaskellErrorIndex index) msg
9089
#if MIN_VERSION_ghc(9,6,1)
90+
heiGetError (HaskellErrorIndex index) msg
9191
| Just code <- diagnosticCode msg
9292
= showGhcCode code `M.lookup` index
9393
| otherwise
9494
= Nothing
9595
#else
96-
Nothing
96+
heiGetError (HaskellErrorIndex index) msg
97+
= Nothing
9798
#endif
9899

99100
attachHeiErrorCodeDescription :: HEIError -> Diagnostic -> Diagnostic

0 commit comments

Comments
 (0)