Fix stray tempdir
This commit is contained in:
parent
e6427ef643
commit
14c097530e
@ -57,12 +57,11 @@ customCradle wdir = do
|
|||||||
cabalFile <- MaybeT $ findCabalFile wdir
|
cabalFile <- MaybeT $ findCabalFile wdir
|
||||||
let cabalDir = takeDirectory cabalFile
|
let cabalDir = takeDirectory cabalFile
|
||||||
cradleFile <- MaybeT $ findCradleFile cabalDir
|
cradleFile <- MaybeT $ findCradleFile cabalDir
|
||||||
tmpDir <- liftIO $ newTempDir cabalDir
|
|
||||||
pkgDbStack <- liftIO $ parseCradle cradleFile
|
pkgDbStack <- liftIO $ parseCradle cradleFile
|
||||||
return Cradle {
|
return Cradle {
|
||||||
cradleCurrentDir = wdir
|
cradleCurrentDir = wdir
|
||||||
, cradleRootDir = cabalDir
|
, cradleRootDir = cabalDir
|
||||||
, cradleTempDir = tmpDir
|
, cradleTempDir = error "tmpDir"
|
||||||
, cradleCabalFile = Just cabalFile
|
, cradleCabalFile = Just cabalFile
|
||||||
, cradlePkgDbStack = pkgDbStack
|
, cradlePkgDbStack = pkgDbStack
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user