Fix typo
This commit is contained in:
parent
2cd4d6bd80
commit
05360e0660
@ -77,7 +77,7 @@ getPackageDbStack' = chCached Cached {
|
|||||||
cacheFile = pkgDbStackCacheFile,
|
cacheFile = pkgDbStackCacheFile,
|
||||||
cachedAction = \ _tcf (progs, rootdir, distdir, _) _ma -> do
|
cachedAction = \ _tcf (progs, rootdir, distdir, _) _ma -> do
|
||||||
dbs <- withCabal $ map chPkgToGhcPkg <$> runQuery' progs rootdir distdir packageDbStack
|
dbs <- withCabal $ map chPkgToGhcPkg <$> runQuery' progs rootdir distdir packageDbStack
|
||||||
return ([setupConfigPath, sandboConfigFile], dbs)
|
return ([setupConfigPath, sandboxConfigFile], dbs)
|
||||||
}
|
}
|
||||||
|
|
||||||
chPkgToGhcPkg :: ChPkgDb -> GhcPkgDb
|
chPkgToGhcPkg :: ChPkgDb -> GhcPkgDb
|
||||||
|
@ -144,7 +144,7 @@ findCabalSandboxDir dir = do
|
|||||||
_ -> Nothing
|
_ -> Nothing
|
||||||
|
|
||||||
where
|
where
|
||||||
isSandboxConfig = (==sandboConfigFile)
|
isSandboxConfig = (==sandboxConfigFile)
|
||||||
|
|
||||||
zipMapM :: Monad m => (a -> m c) -> [a] -> m [(a,c)]
|
zipMapM :: Monad m => (a -> m c) -> [a] -> m [(a,c)]
|
||||||
zipMapM f as = mapM (\a -> liftM ((,) a) $ f a) as
|
zipMapM f as = mapM (\a -> liftM ((,) a) $ f a) as
|
||||||
@ -180,8 +180,8 @@ parents dir' =
|
|||||||
setupConfigFile :: Cradle -> FilePath
|
setupConfigFile :: Cradle -> FilePath
|
||||||
setupConfigFile crdl = cradleRootDir crdl </> setupConfigPath
|
setupConfigFile crdl = cradleRootDir crdl </> setupConfigPath
|
||||||
|
|
||||||
sandboConfigFile :: FilePath
|
sandboxConfigFile :: FilePath
|
||||||
sandboConfigFile = "cabal.sandbox.config"
|
sandboxConfigFile = "cabal.sandbox.config"
|
||||||
|
|
||||||
-- | Path to 'LocalBuildInfo' file, usually @dist/setup-config@
|
-- | Path to 'LocalBuildInfo' file, usually @dist/setup-config@
|
||||||
setupConfigPath :: FilePath
|
setupConfigPath :: FilePath
|
||||||
|
Loading…
Reference in New Issue
Block a user