cosmetic change.
This commit is contained in:
parent
d76b17bc4b
commit
2e440f9214
@ -26,12 +26,14 @@ findCradle (Just sbox) = do
|
|||||||
, cradleCabalDir = Nothing
|
, cradleCabalDir = Nothing
|
||||||
, cradleCabalFile = Nothing
|
, cradleCabalFile = Nothing
|
||||||
, cradlePackageConfOpts = Just confOpts
|
, cradlePackageConfOpts = Just confOpts
|
||||||
|
, cradleGHCVersion = strver
|
||||||
}
|
}
|
||||||
Just (cdir,cfile) -> Cradle {
|
Just (cdir,cfile) -> Cradle {
|
||||||
cradleCurrentDir = wdir
|
cradleCurrentDir = wdir
|
||||||
, cradleCabalDir = Just cdir
|
, cradleCabalDir = Just cdir
|
||||||
, cradleCabalFile = Just cfile
|
, cradleCabalFile = Just cfile
|
||||||
, cradlePackageConfOpts = Just confOpts
|
, cradlePackageConfOpts = Just confOpts
|
||||||
|
, cradleGHCVersion = strver
|
||||||
}
|
}
|
||||||
findCradle Nothing = do
|
findCradle Nothing = do
|
||||||
(strver, ver) <- ghcVersion
|
(strver, ver) <- ghcVersion
|
||||||
@ -43,6 +45,7 @@ findCradle Nothing = do
|
|||||||
, cradleCabalDir = Nothing
|
, cradleCabalDir = Nothing
|
||||||
, cradleCabalFile = Nothing
|
, cradleCabalFile = Nothing
|
||||||
, cradlePackageConfOpts = Nothing
|
, cradlePackageConfOpts = Nothing
|
||||||
|
, cradleGHCVersion = strver
|
||||||
}
|
}
|
||||||
Just (cdir,cfile) -> do
|
Just (cdir,cfile) -> do
|
||||||
let sbox = cdir </> "cabal-dev/"
|
let sbox = cdir </> "cabal-dev/"
|
||||||
@ -54,6 +57,7 @@ findCradle Nothing = do
|
|||||||
, cradleCabalDir = Just cdir
|
, cradleCabalDir = Just cdir
|
||||||
, cradleCabalFile = Just cfile
|
, cradleCabalFile = Just cfile
|
||||||
, cradlePackageConfOpts = if exist then Just confOpts else Nothing
|
, cradlePackageConfOpts = if exist then Just confOpts else Nothing
|
||||||
|
, cradleGHCVersion = strver
|
||||||
}
|
}
|
||||||
|
|
||||||
cabalDir :: FilePath -> IO (Maybe (FilePath,FilePath))
|
cabalDir :: FilePath -> IO (Maybe (FilePath,FilePath))
|
||||||
|
Loading…
Reference in New Issue
Block a user