Skip to content

Commit 5003b37

Browse files
authored
Merge branch 'master' into wip/multi-reexport
2 parents 6056f5a + f4df1aa commit 5003b37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ghcide/src/Development/IDE/Import/FindImports.hs

+4
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,11 @@ notFoundErr env modName reason =
238238
}
239239
LookupUnusable unusable ->
240240
let unusables' = map get_unusable unusable
241+
#if MIN_VERSION_ghc(9,6,4) && !MIN_VERSION_ghc(9,8,1)
242+
get_unusable (m, ModUnusable r) = r
243+
#else
241244
get_unusable (m, ModUnusable r) = (moduleUnit m, r)
245+
#endif
242246
get_unusable (_, r) =
243247
pprPanic "findLookupResult: unexpected origin" (ppr r)
244248
in notFound {fr_unusables = unusables'}

0 commit comments

Comments
 (0)