Fix "ghc-mod root" leaving garbage in tmp

This commit is contained in:
Tomas Janousek 2016-10-10 22:17:11 +02:00
parent b7cda9e9b9
commit 29d149866e

View File

@ -169,4 +169,5 @@ mapDoc kd ad m = vcat $
rootInfo :: forall m. (IOish m, GmOut m, GmEnv m) => m String
rootInfo = do
crdl <- findCradleNoLog =<< (optPrograms <$> options)
liftIO $ cleanupCradle crdl
return $ cradleRootDir crdl ++ "\n"