cabal-lenses-0.6.0: Lenses and traversals for the Cabal library.

Safe HaskellSafe
LanguageHaskell98

CabalLenses.Utils

Synopsis

Documentation

findCabalFile :: FilePath -> EitherT Error IO FilePath Source #

Find a cabal file starting at the given directory, going upwards the directory tree until a cabal file could be found. The returned file path is absolute.

findPackageDB :: FilePath -> EitherT Error IO (Maybe FilePath) Source #

Find the package database of the cabal sandbox from the given cabal file. The returned file path is absolute.

findDistDir :: FilePath -> IO (Maybe FilePath) Source #

Find the dist directory of the cabal build from the given cabal file. For a non sandboxed build it's just the directory dist in the cabal build directory. For a sandboxed build it's the directory 'dist/dist-sandbox-*'. The returned file path is absolute.

findNewDistDir :: FilePath -> IO (Maybe FilePath) Source #

Find the new style dist directory of the cabal build from the given cabal file. The returned file path is absolute.