Make "stack setup" recover for GHCJS build #1874

This commit is contained in:
Michael Sloan 2016-03-04 16:25:14 -08:00
parent cb1ad6c762
commit 2bf17fbc2e

View file

@ -848,6 +848,7 @@ installGHCJS si archiveFile archiveType destDir = do
$logDebug $ "ziptool: " <> T.pack zipTool
$logDebug $ "tar: " <> T.pack tarTool
return $ do
ignoringAbsence (removeDirRecur destDir)
ignoringAbsence (removeDirRecur unpackDir)
readInNull destDir tarTool menv ["xf", toFilePath archiveFile] Nothing
innerDir <- expectSingleUnpackedDir archiveFile destDir