Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
The facility for retrieving all files from the main Stack
Package
type. This was moved into its own module to allow
component-level file-gathering without circular dependency at the Package
level.
Synopsis
- data GetPackageFileContext = GetPackageFileContext {
- ctxFile :: !(Path Abs File)
- ctxDistDir :: !(Path Abs Dir)
- ctxBuildConfig :: !BuildConfig
- ctxCabalVer :: !Version
- data DotCabalPath
- = DotCabalModulePath !(Path Abs File)
- | DotCabalMainPath !(Path Abs File)
- | DotCabalFilePath !(Path Abs File)
- | DotCabalCFilePath !(Path Abs File)
- data DotCabalDescriptor
- newtype GetPackageFiles = GetPackageFiles {
- getPackageFiles :: forall env. HasEnvConfig env => Path Abs File -> RIO env (Map NamedComponent (Map ModuleName (Path Abs File)), Map NamedComponent [DotCabalPath], Set (Path Abs File), [PackageWarning])
- data PackageWarning = UnlistedModulesWarning NamedComponent [ModuleName]
Documentation
data GetPackageFileContext Source #
GetPackageFileContext | |
|
Instances
data DotCabalPath Source #
A path resolved from the Cabal file, which is either main-is or an exposedinternalreferenced module.
DotCabalModulePath !(Path Abs File) | |
DotCabalMainPath !(Path Abs File) | |
DotCabalFilePath !(Path Abs File) | |
DotCabalCFilePath !(Path Abs File) |
Instances
Show DotCabalPath Source # | |
Defined in Stack.Types.PackageFile showsPrec :: Int -> DotCabalPath -> ShowS # show :: DotCabalPath -> String # showList :: [DotCabalPath] -> ShowS # | |
Eq DotCabalPath Source # | |
Defined in Stack.Types.PackageFile (==) :: DotCabalPath -> DotCabalPath -> Bool # (/=) :: DotCabalPath -> DotCabalPath -> Bool # | |
Ord DotCabalPath Source # | |
Defined in Stack.Types.PackageFile compare :: DotCabalPath -> DotCabalPath -> Ordering # (<) :: DotCabalPath -> DotCabalPath -> Bool # (<=) :: DotCabalPath -> DotCabalPath -> Bool # (>) :: DotCabalPath -> DotCabalPath -> Bool # (>=) :: DotCabalPath -> DotCabalPath -> Bool # max :: DotCabalPath -> DotCabalPath -> DotCabalPath # min :: DotCabalPath -> DotCabalPath -> DotCabalPath # |
data DotCabalDescriptor Source #
A descriptor from a Cabal file indicating one of the following:
exposed-modules: Foo other-modules: Foo or main-is: Foo.hs
Instances
Show DotCabalDescriptor Source # | |
Defined in Stack.Types.PackageFile showsPrec :: Int -> DotCabalDescriptor -> ShowS # show :: DotCabalDescriptor -> String # showList :: [DotCabalDescriptor] -> ShowS # | |
Eq DotCabalDescriptor Source # | |
Defined in Stack.Types.PackageFile (==) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # (/=) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # | |
Ord DotCabalDescriptor Source # | |
Defined in Stack.Types.PackageFile compare :: DotCabalDescriptor -> DotCabalDescriptor -> Ordering # (<) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # (<=) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # (>) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # (>=) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # max :: DotCabalDescriptor -> DotCabalDescriptor -> DotCabalDescriptor # min :: DotCabalDescriptor -> DotCabalDescriptor -> DotCabalDescriptor # |
newtype GetPackageFiles Source #
Files that the package depends on, relative to package directory. Argument is the location of the Cabal file
GetPackageFiles | |
|
Instances
Show GetPackageFiles Source # | |
Defined in Stack.Types.PackageFile showsPrec :: Int -> GetPackageFiles -> ShowS # show :: GetPackageFiles -> String # showList :: [GetPackageFiles] -> ShowS # |
data PackageWarning Source #
Warning generated when reading a package
UnlistedModulesWarning NamedComponent [ModuleName] | Modules found that are not listed in Cabal file TODO: bring this back - see https://github.com/commercialhaskell/stack/issues/2649 |