Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix module leaks
  • Loading branch information
mpickering committed Jun 17, 2019
1 parent 3a16e04 commit c3bdae0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hie-plugin-api/Haskell/Ide/Engine/ModuleCache.hs
Expand Up @@ -61,7 +61,8 @@ import System.IO
modifyCache :: (HasGhcModuleCache m) => (GhcModuleCache -> GhcModuleCache) -> m ()
modifyCache f = do
mc <- getModuleCache
setModuleCache (f mc)
let x = (f mc)
x `seq` setModuleCache x

-- ---------------------------------------------------------------------
-- | Runs an action in a ghc-mod Cradle found from the
Expand Down

0 comments on commit c3bdae0

Please sign in to comment.