cabal-install-3.10.1.0: The command-line interface for Cabal and Hackage.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Client.Init.Utils

Synopsis

Documentation

data SourceFileEntry #

Data type of source files found in the working directory

Constructors

SourceFileEntry 

Fields

Instances

Instances details
Show SourceFileEntry # 
Instance details

Defined in Distribution.Client.Init.Utils

retrieveModuleName :: Interactive m => FilePath -> m (Maybe ModuleName) #

Given a module, retrieve its name

retrieveModuleImports :: Interactive m => FilePath -> m [ModuleName] #

Given a module, retrieve all of its imports

retrieveModuleExtensions :: Interactive m => FilePath -> m [Extension] #

Given a module, retrieve all of its language pragmas

retrieveBuildTools :: Interactive m => CabalSpecVersion -> FilePath -> m [Dependency] #

retrieveDependencies :: Interactive m => Verbosity -> InitFlags -> [(ModuleName, ModuleName)] -> InstalledPackageIndex -> m [Dependency] #

isMain :: String -> Bool #

Check if a given file has main file characteristics

isHaskell :: String -> Bool #

Check if a given file has a Haskell extension

isSourceFile :: Maybe [FilePath] -> SourceFileEntry -> Bool #

Check whether a potential source file is located in one of the source directories.

mkPackageNameDep :: PackageName -> Dependency #

mkStringyDep :: String -> Dependency #

getBaseDep :: Interactive m => InstalledPackageIndex -> InitFlags -> m [Dependency] #