Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Distribution.Client.Init.Utils
Synopsis
- data SourceFileEntry = SourceFileEntry {}
- retrieveSourceFiles :: Interactive m => FilePath -> m [SourceFileEntry]
- retrieveModuleName :: Interactive m => FilePath -> m (Maybe ModuleName)
- retrieveModuleImports :: Interactive m => FilePath -> m [ModuleName]
- retrieveModuleExtensions :: Interactive m => FilePath -> m [Extension]
- retrieveBuildTools :: Interactive m => CabalSpecVersion -> FilePath -> m [Dependency]
- retrieveDependencies :: Interactive m => Verbosity -> InitFlags -> [(ModuleName, ModuleName)] -> InstalledPackageIndex -> m [Dependency]
- isMain :: String -> Bool
- isHaskell :: String -> Bool
- isSourceFile :: Maybe [FilePath] -> SourceFileEntry -> Bool
- trim :: String -> String
- currentDirPkgName :: Interactive m => m PackageName
- filePathToPkgName :: Interactive m => FilePath -> m PackageName
- mkPackageNameDep :: PackageName -> Dependency
- fixupDocFiles :: Interactive m => Verbosity -> PkgDescription -> m PkgDescription
- mkStringyDep :: String -> Dependency
- getBaseDep :: Interactive m => InstalledPackageIndex -> InitFlags -> m [Dependency]
- addLibDepToExe :: PackageName -> ExeTarget -> ExeTarget
- addLibDepToTest :: PackageName -> Maybe TestTarget -> Maybe TestTarget
Documentation
data SourceFileEntry Source #
Data type of source files found in the working directory
Constructors
SourceFileEntry | |
Fields
|
Instances
Show SourceFileEntry Source # | |
Defined in Distribution.Client.Init.Utils Methods showsPrec :: Int -> SourceFileEntry -> ShowS # show :: SourceFileEntry -> String # showList :: [SourceFileEntry] -> ShowS # |
retrieveSourceFiles :: Interactive m => FilePath -> m [SourceFileEntry] Source #
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 #
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 #
fixupDocFiles :: Interactive m => Verbosity -> PkgDescription -> m PkgDescription Source #
mkStringyDep :: String -> Dependency Source #
getBaseDep :: Interactive m => InstalledPackageIndex -> InitFlags -> m [Dependency] Source #
addLibDepToExe :: PackageName -> ExeTarget -> ExeTarget Source #
addLibDepToTest :: PackageName -> Maybe TestTarget -> Maybe TestTarget Source #