cabal-lenses-0.15.0: Lenses and traversals for the Cabal library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

CabalLenses.Utils

Synopsis

Documentation

findCabalFile :: FilePath -> ExceptT 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 -> ExceptT 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.

symbolicPathListToFilePathList :: Iso' [SymbolicPath from to] [FilePath] Source #

Deprecated: Use symPathsToFilePaths.