cabal-install-3.10.3.0: The command-line interface for Cabal and Hackage.
Safe HaskellNone
LanguageHaskell2010

Distribution.Client.Init.Utils

Synopsis

Documentation

data SourceFileEntry Source #

Data type of source files found in the working directory

Constructors

SourceFileEntry 

Fields

Instances

Instances details
Show SourceFileEntry Source # 
Instance details

Defined in Distribution.Client.Init.Utils

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

Given a module, retrieve its name

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

Given a module, retrieve all of its imports

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

Given a module, retrieve all of its language pragmas

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

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

isMain :: String -> Bool Source #

Check if a given file has main file characteristics

isHaskell :: String -> Bool Source #

Check if a given file has a Haskell extension

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

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

currentDirPkgName :: Interactive m => m PackageName Source #

filePathToPkgName :: Interactive m => FilePath -> m PackageName Source #

mkPackageNameDep :: PackageName -> Dependency Source #

mkStringyDep :: String -> Dependency Source #

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