Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions hie-plugin-api/Haskell/Ide/Engine/GhcModuleCache.hs
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ lookupComponentOptions fp = do
lookupInCache
:: FilePath
-> GhcModuleCache
-- | Called when file is in the current cradle
-> (Bios.Cradle CabalHelper -> Bios.ComponentOptions -> a)
-- | Called when file is a member of a cached cradle
-- ^ Called when file is in the current cradle
-> (CachedCradle -> a)
-- | Default value to return if a cradle is not found
-- ^ Called when file is a member of a cached cradle
-> a
-- ^ Default value to return if a cradle is not found
-> a
lookupInCache fp gmc cur cached def = case currentCradle gmc of
Just (dirs, c, co) | any (`isPrefixOf` fp) dirs -> cur c co
Expand Down