Skip to content

Commit d42d632

Browse files
committed
Use makeAbsolute to read HIE files from disk
1 parent cc76fcc commit d42d632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ import Ide.Plugin.Config
139139
import qualified Language.LSP.Server as LSP
140140
import Language.LSP.Types (SMethod (SCustomMethod))
141141
import Language.LSP.VFS
142-
import System.Directory (canonicalizePath, makeAbsolute)
142+
import System.Directory (makeAbsolute)
143143
import Data.Default (def, Default)
144144
import Ide.Plugin.Properties (HasProperty,
145145
KeyNameProxy,
@@ -759,7 +759,7 @@ getModIfaceFromDiskAndIndexRule =
759759
hie_loc = Compat.ml_hie_file $ ms_location ms
760760
hash <- liftIO $ Util.getFileHash hie_loc
761761
mrow <- liftIO $ HieDb.lookupHieFileFromSource hiedb (fromNormalizedFilePath f)
762-
hie_loc' <- liftIO $ traverse (canonicalizePath . HieDb.hieModuleHieFile) mrow
762+
hie_loc' <- liftIO $ traverse (makeAbsolute . HieDb.hieModuleHieFile) mrow
763763
case mrow of
764764
Just row
765765
| hash == HieDb.modInfoHash (HieDb.hieModInfo row)

0 commit comments

Comments
 (0)