cabal-install-3.8.1.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

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

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.