Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- getDependencyNames :: Set DependencyName -> [Dependency] -> Set DependencyName
- getSourceFiles :: FilePath -> Maybe FilePath -> BuildInfo -> IO (Set FilePath)
- getLibraryCompilable :: FilePath -> Set DependencyName -> Text -> CondTree a [Dependency] Library -> IO Compilable
- getExecutableCompilable :: FilePath -> Set DependencyName -> Text -> CondTree a [Dependency] Executable -> IO Compilable
- getTestCompilable :: FilePath -> Set DependencyName -> Text -> CondTree a [Dependency] TestSuite -> IO Compilable
- getBenchmarkCompilable :: FilePath -> Set DependencyName -> Text -> CondTree a [Dependency] Benchmark -> IO Compilable
- parseCabalFile :: FilePath -> Set DependencyName -> IO Package
- parseCabalFiles :: (MonadIO m, MonadLogger m) => [FilePath] -> Set DependencyName -> [Text] -> m [Package]
- findCabalFiles :: FilePath -> IO (BuildSystem, [FilePath])
- parseCabalProjectFile :: FilePath -> IO (BuildSystem, [FilePath])
Documentation
getDependencyNames :: Set DependencyName -> [Dependency] -> Set DependencyName Source #
Get the dependencies for a thing to compile.
getSourceFiles :: FilePath -> Maybe FilePath -> BuildInfo -> IO (Set FilePath) Source #
Get the Haskell source files to compile.
getLibraryCompilable :: FilePath -> Set DependencyName -> Text -> CondTree a [Dependency] Library -> IO Compilable Source #
Parse a library to compile.
getExecutableCompilable :: FilePath -> Set DependencyName -> Text -> CondTree a [Dependency] Executable -> IO Compilable Source #
Parse an executable to compile.
getTestCompilable :: FilePath -> Set DependencyName -> Text -> CondTree a [Dependency] TestSuite -> IO Compilable Source #
Parse a test to compile.
getBenchmarkCompilable :: FilePath -> Set DependencyName -> Text -> CondTree a [Dependency] Benchmark -> IO Compilable Source #
Parse a benchmark to compile.
parseCabalFile :: FilePath -> Set DependencyName -> IO Package Source #
Parse a single cabal file.
parseCabalFiles :: (MonadIO m, MonadLogger m) => [FilePath] -> Set DependencyName -> [Text] -> m [Package] Source #
Parse cabal files by file path, filter by explicit package names (if provided), and return the parsed packages.
findCabalFiles :: FilePath -> IO (BuildSystem, [FilePath]) Source #
parseCabalProjectFile :: FilePath -> IO (BuildSystem, [FilePath]) Source #
Parse cabal.project file by file path.