Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- findCabalFile :: FilePath -> ExceptT Error IO FilePath
- findPackageDB :: FilePath -> ExceptT Error IO (Maybe FilePath)
- findDistDir :: FilePath -> IO (Maybe FilePath)
- findNewDistDir :: FilePath -> IO (Maybe FilePath)
- symPathsToFilePaths :: Iso' [SymbolicPath from to] [FilePath]
- symbolicPathListToFilePathList :: Iso' [SymbolicPath from to] [FilePath]
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.
symPathsToFilePaths :: Iso' [SymbolicPath from to] [FilePath] Source #
symbolicPathListToFilePathList :: Iso' [SymbolicPath from to] [FilePath] Source #
Deprecated: Use symPathsToFilePaths.