Skip to content

Commit c85d923

Browse files
committed
Fix compilation error for GHC 9.12
1 parent 950159e commit c85d923

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ import Data.Time (getCurrentTime)
147147
import GHC.Driver.Env (hsc_all_home_unit_ids)
148148
#endif
149149

150+
#if MIN_VERSION_ghc(9,12,0)
151+
import Development.IDE.Import.FindImports
152+
#endif
153+
150154
--Simple constants to make sure the source is consistently named
151155
sourceTypecheck :: T.Text
152156
sourceTypecheck = "typecheck"

0 commit comments

Comments
 (0)